Skip to content

Commit

Permalink
CI fix for pytest-qt
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexeh committed Jan 2, 2024
1 parent 5a76424 commit 274e55d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@ on: [push]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.11"]
os : [ubuntu-latest]
env:
DISPLAY: ':99.0'

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: setup ${{ matrix.os }}
run: |
sudo apt install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -24,7 +31,7 @@ jobs:
run: |
poetry run pylint --rcfile pyproject.toml joystick_diagrams/ tests/ || poetry run pylint-exit $?
- name: Run tests
run: poetry run pytest -m "not uitest" --cov-report=term-missing --cov=joystick_diagrams ./tests --cov-report=xml
run: poetry run pytest --cov-report=term-missing --cov=joystick_diagrams ./tests --cov-report=xml
- name: Run Upload coverage
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 274e55d

Please sign in to comment.