Skip to content

Commit

Permalink
pytss: pin cryptography version to workaround pytss incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Holland committed Jan 29, 2024
1 parent 0352c76 commit 86bcd29
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
- name: Install dependencies
run: sudo apt install -y libpcap-dev libtss2-dev

- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: '3.12'

- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
Expand All @@ -23,9 +25,11 @@ jobs:

# the package installation will only be executed when the
# requirements-files have changed.
- run: pip install .; pip install pytest autoflake black isort tpm2_pytss
- run: pip install --upgrade pip && pip install . && pip install pytest autoflake black isort cryptography==3.4.8 tpm2_pytss
#if: steps.cache-virtualenv.outputs.cache-hit != 'true'

- run: pip freeze

- name: Test
run: python -m pytest

Expand All @@ -39,7 +43,9 @@ jobs:
- name: Install dependencies
run: sudo apt install -y libpcap-dev bats

- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: '3.12'

- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
Expand All @@ -66,7 +72,9 @@ jobs:
- name: Install dependencies
run: sudo apt install -y libpcap-dev

- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: '3.12'

- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
Expand Down

0 comments on commit 86bcd29

Please sign in to comment.