Skip to content

Commit

Permalink
ci: test with and without UI separately
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 20, 2023
1 parent 6220308 commit e309735
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
matrix:
python-version: ['3.10']
os: [macos-latest, ubuntu-latest, windows-latest]
deps: ["none", "all"]
env:
# Display must be available globally for linux to know where xvfb is
DISPLAY: :0
Expand All @@ -35,16 +36,21 @@ jobs:
run: |
# prerequisites
python -m pip install --upgrade pip wheel
python -m pip install coverage flake8
# install dependencies
python -m pip install coverage flake8 pytest
# install base dependencies
pip install .
pip install -r tests/requirements.txt
# show installed packages
pip freeze
- name: Install extended dependencies
if: matrix.deps == "all"
run: |
pip install .[cli,gui]
pip install -r tests/requirements.txt
- name: Lint with flake8
run: |
flake8 --exclude _version.py .
- name: Start application and print version
if: matrix.deps == "all"
env:
# Display must be available globally for linux to know where xvfb is
QT_DEBUG_PLUGINS: 1
Expand Down

0 comments on commit e309735

Please sign in to comment.