[pre-commit.ci] pre-commit autoupdate #213
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ["3.10", "3.11"] | |
qt-lib: ["pyqt5", "pyqt6", "pyside2", "pyside6"] | |
os: [ubuntu-latest, windows-latest] | |
include: | |
- python: "3.10" | |
tox-env: "py310" | |
- python: "3.11" | |
tox-env: "py311" | |
exclude: | |
- python: "3.11" | |
qt-lib: "pyside2" | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install mesa | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y libgles2-mesa-dev | |
shell: bash | |
- name: Install tox | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: Test | |
run: | | |
tox -e ${{ matrix.tox-env }}-${{ matrix.qt-lib }} -- -ra --color=yes |