Skip to content

Commit 86bcd29

Browse files
author
Johannes Holland
committed
pytss: pin cryptography version to workaround pytss incompatibility
1 parent 0352c76 commit 86bcd29

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
- name: Install dependencies
1111
run: sudo apt install -y libpcap-dev libtss2-dev
1212

13-
- uses: actions/setup-python@v3
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.12'
1416

1517
- uses: syphar/restore-virtualenv@v1
1618
id: cache-virtualenv
@@ -23,9 +25,11 @@ jobs:
2325

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

31+
- run: pip freeze
32+
2933
- name: Test
3034
run: python -m pytest
3135

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

42-
- uses: actions/setup-python@v3
46+
- uses: actions/setup-python@v5
47+
with:
48+
python-version: '3.12'
4349

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

69-
- uses: actions/setup-python@v3
75+
- uses: actions/setup-python@v5
76+
with:
77+
python-version: '3.12'
7078

7179
- uses: syphar/restore-virtualenv@v1
7280
id: cache-virtualenv

0 commit comments

Comments
 (0)