Skip to content

Commit

Permalink
ci: install dependencies for pytest-qt
Browse files Browse the repository at this point in the history
  • Loading branch information
Artalus committed Jul 28, 2022
1 parent ae1b199 commit 64e1073
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
# pytest-qt will fail with core dump unless enough dependencies are installed
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
- name: Install qt dependencies
uses: tlambert03/setup-qt-libs@v1
- name: Install python dependencies
run: |
pip install wheel
pip install -e .[dev,test]
- name: unit tests
run: pytest test/unit/ --cov
run: xvfb-run -a pytest test/unit/ --cov
- name: upload unit coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand All @@ -39,7 +43,7 @@ jobs:
docker-compose up -d
python test/util/wait.py http://localhost:8080/api/json
- name: integration tests
run: pytest test/integration/ --cov
run: xvfb-run -a pytest test/integration/ --cov
- name: upload integration coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 64e1073

Please sign in to comment.