Skip to content

Commit

Permalink
Backport PR #1730: Fix GH actions benchmark run
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored and meeseeksmachine committed Oct 22, 2024
1 parent 49f6cdd commit 2b35d81
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,28 @@ jobs:
ASV_DIR: "./benchmarks"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- run: git fetch origin main:main
if: ${{ github.ref_name != 'main' }}
# Errors on main branch

- uses: mamba-org/setup-micromamba@v1
- uses: mamba-org/setup-micromamba@v2
with:
environment-name: asv
cache-environment: true
# Deps documented in https://asv.readthedocs.io/en/latest/installing.html
# libmambapy upper bound: https://github.com/airspeed-velocity/asv/issues/1438
create-args: >-
python=3.11
python=${{ matrix.python }}
asv
mamba
packaging
libmambapy<2
conda-build
- name: Cache datasets
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cache
Expand Down

0 comments on commit 2b35d81

Please sign in to comment.