Skip to content

Commit

Permalink
Add pytest job to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zjosua committed Sep 13, 2023
1 parent f285c84 commit fb5da36
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,20 @@ jobs:
with:
options: "--check"
src: "./src/multiple_choice"

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install anki aqt PyQt5 PyQt6
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest --cov=src/multiple_choice/

0 comments on commit fb5da36

Please sign in to comment.