Skip to content

Commit ba70263

Browse files
committed
run python in venv, also apply some pip options from curl
1 parent 9d3659b commit ba70263

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ jobs:
6868
persist-credentials: false
6969

7070
- name: Install test dependencies
71-
run: pip --disable-pip-version-check --no-input --no-cache-dir install '.[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]'
7274
7375
- name: Run TLV constants sync test
74-
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
- name: 'install prereqs'
3131
run: |
3232
/home/linuxbrew/.linuxbrew/bin/brew install zizmor
33-
pip --disable-pip-version-check --no-input --no-cache-dir install '.[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]'
3435
3536
- name: 'zizmor GHA'
3637
env:
@@ -41,6 +42,7 @@ jobs:
4142
4243
- name: 'ruff'
4344
run: |
45+
source ~/venv/bin/activate
4446
ruff --version
4547
# shellcheck disable=SC2046
4648
ruff check $(git ls-files '*.py')

.github/workflows/pages-ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@ jobs:
2626

2727
- name: Install dependencies
2828
run: |
29-
pip --disable-pip-version-check --no-input --no-cache-dir install '.[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
3032
python -m playwright install
3133
3234
- name: Install Playwright system dependencies
3335
run: |
3436
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
3537
sudo rm -f /var/lib/man-db/auto-update
38+
source ~/venv/bin/activate
3639
playwright install-deps
3740
3841
- name: Run Playwright browser test
39-
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ jobs:
2222
persist-credentials: false
2323

2424
- name: Install dependencies
25-
run: pip --disable-pip-version-check --no-input --no-cache-dir install '.[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]'
2628
2729
- name: Generate decoder HTML
28-
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
2933
3034
- name: Upload artifact
3135
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0

0 commit comments

Comments
 (0)