Skip to content

Commit

Permalink
Use a matrix for extra requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Jul 15, 2023
1 parent c2286bd commit ae921d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
python-version:
- "3.10"
- "3.11"
extra_requirements:
- ""
- "pydantic==1.10.11"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -29,6 +32,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
if [ -f ${{ matrix.extra_requirements }} ]; then pip install ${{ matrix.extra_requirements }}; fi
- uses: supplypike/setup-bin@v3
with:
uri: https://github.com/kyverno/kyverno/releases/download/v1.9.0/kyverno-cli_v1.9.0_linux_x86_64.tar.gz
Expand All @@ -37,10 +41,6 @@ jobs:
- name: Test with pytest
run: |
SKIP_DIFF_TESTS=1 pytest --cov=flux_local --cov-report=term-missing
- name: Test with pytest (pydantic v1)
run: |
pip3 install pydantic==1.10.11
SKIP_DIFF_TESTS=1 pytest --cov=flux_local --cov-report=term-missing
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit ae921d1

Please sign in to comment.