Skip to content

Commit f366480

Browse files
committed
Revert "switch back to py action"
This reverts commit 52efe1f.
1 parent 52efe1f commit f366480

File tree

5 files changed

+24
-25
lines changed

5 files changed

+24
-25
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ jobs:
6767
with:
6868
persist-credentials: false
6969

70-
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
71-
with:
72-
python-version: '3.12'
73-
7470
- name: Install test dependencies
75-
run: pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[python-tests]'
71+
run: |
72+
python3 -m venv ~/venv
73+
~/venv/bin/pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[python-tests]'
7674
7775
- name: Run TLV constants sync test
78-
run: pytest tests/test_tlv_constants_sync.py
76+
run: |
77+
source ~/venv/bin/activate
78+
pytest tests/test_tlv_constants_sync.py

.github/workflows/checksrc.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ jobs:
2727
with:
2828
persist-credentials: false
2929

30-
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
31-
with:
32-
python-version: '3.12'
33-
3430
- name: 'install prereqs'
3531
run: |
3632
/home/linuxbrew/.linuxbrew/bin/brew install zizmor
37-
pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[ci-tests]'
33+
python3 -m venv ~/venv
34+
~/venv/bin/pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[ci-tests]'
3835
3936
- name: 'zizmor GHA'
4037
env:
@@ -45,6 +42,7 @@ jobs:
4542
4643
- name: 'ruff'
4744
run: |
45+
source ~/venv/bin/activate
4846
ruff --version
4947
# shellcheck disable=SC2046
5048
ruff check $(git ls-files '*.py')

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ jobs:
6969
runs-on: ubuntu-latest
7070
strategy:
7171
matrix: ${{ fromJSON(needs.DetermineMatrix.outputs.matrix) }}
72+
env:
73+
MATRIX_FUZZER: '${{ matrix.fuzzer }}'
7274
steps:
7375
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
7476
with:
7577
name: fuzz_tar
7678
- name: Unpack fuzzer ${{ matrix.fuzzer }}
77-
env:
78-
MATRIX_FUZZER: '${{ matrix.fuzzer }}'
7979
run: tar xvf fuzz.tar build-out/"${MATRIX_FUZZER}" build-out/"${MATRIX_FUZZER}"_seed_corpus.zip
8080
- name: Display extracted files
8181
run: ls -laR build-out/

.github/workflows/pages-ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,21 @@ jobs:
2424
with:
2525
persist-credentials: false
2626

27-
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
28-
with:
29-
python-version: '3.12'
30-
3127
- name: Install dependencies
3228
run: |
33-
pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[browser-tests]'
29+
python3 -m venv ~/venv
30+
~/venv/bin/pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[browser-tests]'
31+
source ~/venv/bin/activate
3432
python -m playwright install
3533
3634
- name: Install Playwright system dependencies
3735
run: |
3836
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
3937
sudo rm -f /var/lib/man-db/auto-update
38+
source ~/venv/bin/activate
4039
playwright install-deps
4140
4241
- name: Run Playwright browser test
43-
run: pytest tests/browser/test_corpus_decoder.py
42+
run: |
43+
source ~/venv/bin/activate
44+
pytest tests/browser/test_corpus_decoder.py

.github/workflows/pages.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
with:
2222
persist-credentials: false
2323

24-
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
25-
with:
26-
python-version: '3.12'
27-
2824
- name: Install dependencies
29-
run: pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[page-gen]'
25+
run: |
26+
python3 -m venv ~/venv
27+
~/venv/bin/pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[page-gen]'
3028
3129
- name: Generate decoder HTML
32-
run: python -m curl_fuzzer_tools.generate_decoder_html
30+
run: |
31+
source ~/venv/bin/activate
32+
python -m curl_fuzzer_tools.generate_decoder_html
3333
3434
- name: Upload artifact
3535
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0

0 commit comments

Comments
 (0)