diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 2899c76..669d3d0 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -8,13 +8,11 @@ name: tests on: push: branches: - - master - main tags: - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 pull_request: branches: - - master - main workflow_dispatch: @@ -28,21 +26,15 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - # these libraries, along with pytest-xvfb (added in the `deps` in - # tox.ini), enable testing on Qt on linux - - name: Install Linux libraries - if: runner.os == 'Linux' - run: | - sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 \ - libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \ - libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 + # these libraries enable testing on Qt on linux + - uses: tlambert03/setup-qt-libs@v1 # strategy borrowed from vispy for installing opengl libs on windows - name: Install Windows OpenGL @@ -58,16 +50,18 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools tox tox-gh-actions + python -m pip install tox tox-gh-actions # this runs the platform-specific tests declared in tox.ini - name: Test with tox - run: tox + uses: aganders3/headless-gui@v1 + with: + run: tox env: PLATFORM: ${{ matrix.platform }} - name: Coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: fail_ci_if_error: false