Skip to content

Commit

Permalink
Move cryptography version out of matrix configuration for action.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Mar 6, 2024
1 parent c4663c8 commit b316f18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ jobs:
name: Python unit tests + cryptography
needs: pre_job
runs-on: ubuntu-20.04
env:
cryptography_version: '40.0.2'
strategy:
max-parallel: 5
matrix:
python-version: [ 3.6, 3.7, 3.8, 3.9, '3.10', '3.11' ]
crypto-version: [ '40.0.2' ]

steps:
- uses: actions/checkout@v2
Expand All @@ -77,10 +78,10 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.tox/py${{ matrix.python-version }}
key: ${{ runner.os }}-tox-py${{ matrix.python-version }}-crypto${{ matrix.crypto-version }}-${{ hashFiles('setup.py', 'requirements/*.txt') }}
key: ${{ runner.os }}-tox-py${{ matrix.python-version }}-crypto${{ env.cryptography_version }}-${{ hashFiles('setup.py', 'requirements/*.txt') }}
- name: Test with tox
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
run: tox -e py${{ matrix.python-version }}-cryptography${{ matrix.crypto-version }}
run: tox -e py${{ matrix.python-version }}-cryptography${{ env.cryptography_version }}
postgres:
name: Python postgres unit tests
needs: pre_job
Expand Down

0 comments on commit b316f18

Please sign in to comment.