90 lines
2.6 KiB
YAML
90 lines
2.6 KiB
YAML
name: Tests
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
jobs:
|
|
run-tests:
|
|
name: ${{ matrix.name }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- name: Anki 2.1.45
|
|
python: 3.8
|
|
environment: py38-anki2.1.45
|
|
- name: Anki 2.1.46
|
|
python: 3.8
|
|
environment: py38-anki2.1.46
|
|
- name: Anki 2.1.47
|
|
python: 3.8
|
|
environment: py38-anki2.1.47
|
|
- name: Anki 2.1.48
|
|
python: 3.8
|
|
environment: py38-anki2.1.48
|
|
- name: Anki 2.1.49
|
|
python: 3.8
|
|
environment: py38-anki2.1.49
|
|
- name: Anki 2.1.50 (Qt5)
|
|
python: 3.9
|
|
environment: py39-anki2.1.50-qt5
|
|
- name: Anki 2.1.50 (Qt6)
|
|
python: 3.9
|
|
environment: py39-anki2.1.50-qt6
|
|
- name: Anki 2.1.51 (Qt5)
|
|
python: 3.9
|
|
environment: py39-anki2.1.51-qt5
|
|
- name: Anki 2.1.51 (Qt6)
|
|
python: 3.9
|
|
environment: py39-anki2.1.51-qt6
|
|
- name: Anki 2.1.52 (Qt5)
|
|
python: 3.9
|
|
environment: py39-anki2.1.52-qt5
|
|
- name: Anki 2.1.52 (Qt6)
|
|
python: 3.9
|
|
environment: py39-anki2.1.52-qt6
|
|
- name: Anki 2.1.53 (Qt5)
|
|
python: 3.9
|
|
environment: py39-anki2.1.53-qt5
|
|
- name: Anki 2.1.53 (Qt6)
|
|
python: 3.9
|
|
environment: py39-anki2.1.53-qt6
|
|
- name: Anki 2.1.54 (Qt5)
|
|
python: 3.9
|
|
environment: py39-anki2.1.54-qt5
|
|
- name: Anki 2.1.54 (Qt6)
|
|
python: 3.9
|
|
environment: py39-anki2.1.54-qt6
|
|
- name: Anki 2.1.55 (Qt5)
|
|
python: 3.9
|
|
environment: py39-anki2.1.55-qt5
|
|
- name: Anki 2.1.55 (Qt6)
|
|
python: 3.9
|
|
environment: py39-anki2.1.55-qt6
|
|
- name: Anki 2.1.56 (Qt5)
|
|
python: 3.9
|
|
environment: py39-anki2.1.56-qt5
|
|
- name: Anki 2.1.56 (Qt6)
|
|
python: 3.9
|
|
environment: py39-anki2.1.56-qt6
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y pyqt5-dev-tools xvfb jq
|
|
|
|
- name: Setup Python ${{ matrix.python }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python }}
|
|
|
|
- name: Install tox
|
|
run: pip install 'tox==3.28.0'
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run tests
|
|
run: tox -vvve ${{ matrix.environment }} -- --forked --verbose
|