From 7ec1d08a109b1d5177306b519a0c25fc5175b36c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 2 Jul 2020 21:43:35 +0200 Subject: [PATCH] ci: Add Linux/tox tests to GitHub Actions --- .github/workflows/ci.yml | 61 ++++++++++++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efc10d1b6..f72217359 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}"