ci: Add Linux/tox tests to GitHub Actions

This commit is contained in:
Florian Bruhin 2020-07-02 21:43:35 +02:00
parent 8d1a8540c5
commit 7ec1d08a10
1 changed files with 53 additions and 8 deletions

View File

@ -36,6 +36,7 @@ jobs:
run: "bash scripts/dev/ci/run.sh ${{ matrix.testenv }}"
tests-docker:
if: false # FIXME
runs-on: ubuntu-20.04
strategy:
fail-fast: false
@ -56,11 +57,55 @@ jobs:
- uses: actions/checkout@v2
- run: tox -e py38
# tests:
# strategy:
# fail-fast: false
# matrix:
# include:
# ### PyQt 5.7.1 (Python 3.5)
# - os: ubuntu-16.04
tests:
strategy:
fail-fast: false
matrix:
include:
### PyQt 5.7.1 (Python 3.5)
- os: ubuntu-16.04
python: 3.5
testenv: py35-pyqt57
### PyQt 5.9 (Python 3.6)
- os: ubuntu-20.04
python: 3.6
testenv: py36-pyqt59
### PyQt 5.10 (Python 3.6)
- os: ubuntu-20.04
python: 3.6
testenv: py36-pyqt510
### PyQt 5.11 (Python 3.7)
- os: ubuntu-20.04
python: 3.7
testenv: py37-pyqt511
### PyQt 5.12 (Python 3.8)
- os: ubuntu-20.04
python: 3.8
testenv: py38-pyqt512
### PyQt 5.13 (Python 3.8)
- os: ubuntu-20.04
python: 3.8
testenv: py38-pyqt513
### PyQt 5.14 (Python 3.8)
- os: ubuntu-20.04
python: 3.8
testenv: py38-pyqt514
### PyQt 5.15 (Python 3.8)
- os: ubuntu-20.04
python: 3.8
testenv: py38-pyqt515
### TODO: macOS
### TODO: Windows
### TODO: coverage
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python }}"
- name: Install apt dependencies
run: sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0
- name: Install dependencies
run: "bash scripts/dev/ci/install.sh ${{ matrix.testenv }}"
- name: "Run ${{ matrix.testenv }}"
run: "bash scripts/dev/ci/run.sh ${{ matrix.testenv }}"