Skip to content

Commit c793f9d

Browse files
authored
Pin virtualenv for asv (#516)
1 parent f24186a commit c793f9d

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
with:
3939
fetch-depth: 0
4040
- name: Install dependencies
41-
run: pip install "asv[virtualenv]==${{env.ASV_VERSION}}"
41+
run: |
42+
pip install asv==${{env.ASV_VERSION}}
43+
pip install virtualenv==20.30 # Temporary fix to airspeed-velocity/asv#1484
4244
- name: Configure git
4345
run: |
4446
git config user.name "github-actions[bot]"

python-project-template/.github/workflows/{% if include_benchmarks %}asv-nightly.yml{% endif %}.jinja

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434
with:
3535
fetch-depth: 0
3636
- name: Install dependencies
37-
run: pip install "asv[virtualenv]==${{env.ASV_VERSION}}"
37+
run: |
38+
pip install asv==${{env.ASV_VERSION}}
39+
pip install virtualenv==20.30 # Temporary fix to airspeed-velocity/asv#1484
3840
- name: Configure git
3941
run: |
4042
git config user.name "github-actions[bot]"

python-project-template/.github/workflows/{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ jobs:
4343
run: |
4444
echo "Workflow Run ID: ${{github.run_id}}"
4545
- name: Install dependencies
46-
run: pip install "asv[virtualenv]==${{env.ASV_VERSION}}" lf-asv-formatter
46+
run: |
47+
pip install asv==${{env.ASV_VERSION}} lf-asv-formatter
48+
pip install virtualenv==20.30 # Temporary fix to airspeed-velocity/asv#1484
4749
- name: Make artifacts directory
4850
run: mkdir -p ${{env.ARTIFACTS_DIR}}
4951
- name: Save pull request number

python-project-template/pyproject.toml.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dependencies = [
3131
dev = [
3232
{%- if include_benchmarks %}
3333
"asv==0.6.4", # Used to compute performance benchmarks
34+
"virtualenv==20.30", # Temporary fix to airspeed-velocity/asv#1484
3435
{%- endif %}
3536
{%- if 'black' in enforce_style %}
3637
"black", # Used for static linting of files

0 commit comments

Comments
 (0)