Skip to content

Commit

Permalink
ci: run full matrix testing, but only on push to main and release
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Feb 27, 2023
1 parent 2b25128 commit ea72d5f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/matrix-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This matrix testing is for versions not already exercised by tests.yml
# For regular pushes, we just test the baseline Python version, but when pushing
# to main or release, we want to exercise the full matrix.
name: Run Matrix Tests
on:
push:
branches: [main, release]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
pip install wheel
pip install -r requirements.txt -r requirements.dev.txt -r requirements.ci.txt -e .
- name: Run tests
run: cd test && python run.py prod

0 comments on commit ea72d5f

Please sign in to comment.