Skip to content

Commit ebe35be

Browse files
committed
Reapply "switch back to py action"
This reverts commit f366480.
1 parent a01bcd9 commit ebe35be

File tree

5 files changed

+25
-24
lines changed

5 files changed

+25
-24
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+
7074
- name: Install test dependencies
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]'
75+
run: pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[python-tests]'
7476

7577
- name: Run TLV constants sync test
76-
run: |
77-
source ~/venv/bin/activate
78-
pytest tests/test_tlv_constants_sync.py
78+
run: pytest tests/test_tlv_constants_sync.py

.github/workflows/checksrc.yml

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

30+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
31+
with:
32+
python-version: '3.12'
33+
3034
- name: 'install prereqs'
3135
run: |
3236
/home/linuxbrew/.linuxbrew/bin/brew install zizmor
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]'
37+
pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[ci-tests]'
3538
3639
- name: 'zizmor GHA'
3740
env:
@@ -42,7 +45,6 @@ jobs:
4245
4346
- name: 'ruff'
4447
run: |
45-
source ~/venv/bin/activate
4648
ruff --version
4749
# shellcheck disable=SC2046
4850
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 }}'
7472
steps:
7573
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
7674
with:
7775
name: fuzz_tar
7876
- 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: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,20 @@ jobs:
2424
with:
2525
persist-credentials: false
2626

27+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
28+
with:
29+
python-version: '3.12'
30+
2731
- name: Install dependencies
2832
run: |
29-
python3 -m venv ~/venv
30-
~/venv/bin/pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[page-gen,browser-tests]'
31-
source ~/venv/bin/activate
33+
pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[page-gen,browser-tests]'
3234
python -m playwright install
3335
3436
- name: Install Playwright system dependencies
3537
run: |
3638
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
3739
sudo rm -f /var/lib/man-db/auto-update
38-
source ~/venv/bin/activate
3940
playwright install-deps
4041
4142
- name: Run Playwright browser test
42-
run: |
43-
source ~/venv/bin/activate
44-
pytest tests/browser/test_corpus_decoder.py
43+
run: 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+
2428
- name: Install dependencies
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]'
29+
run: pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary '.[page-gen]'
2830

2931
- name: Generate decoder HTML
30-
run: |
31-
source ~/venv/bin/activate
32-
python -m curl_fuzzer_tools.generate_decoder_html
32+
run: 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)