Skip to content

Commit

Permalink
Add pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
nickheyer committed Jan 15, 2024
1 parent 291b289 commit c53fcfc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Tests

on: push

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run pytest
run: pytest
3 changes: 2 additions & 1 deletion DiscoFlixClient/tests/commands/test_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,5 @@ async def test_help_nonuser_with_debug(bot):
'help'
])

assert available_commands == expected_commands
assert available_commands == expected_commands

0 comments on commit c53fcfc

Please sign in to comment.