Skip to content

Commit

Permalink
Merge pull request #78 from danieldavidson/github-action-matrix
Browse files Browse the repository at this point in the history
feat: add matrix to test job
  • Loading branch information
dolevf authored Jan 14, 2024
2 parents ecfe3a1 + 3013abd commit 124b436
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,26 @@ on:

jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-20.04
pyver:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
exclude:
- os: ubuntu-22.04
pyver: 3.6
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.6'
python-version: ${{ matrix.pyver }}
cache: 'pip'
- run: pip install -r requirements.txt

Expand All @@ -32,4 +46,4 @@ jobs:
- name: Run DVGA Tests
run: |
python3 -m pytest tests/*
python3 -m pytest tests/*

0 comments on commit 124b436

Please sign in to comment.