Skip to content

Commit

Permalink
Add python version to conda setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed May 24, 2024
1 parent 4021893 commit 61d4fa5
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,31 @@ jobs:
benchmarks:
name: Check benchmarks
runs-on: ubuntu-latest

# Set shell in login mode as global setting for the job
defaults:
run:
shell: bash -l {0}

strategy:
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v2 # we need conda for asv env management
- name: Checkout brainglobe-workflows repository
uses: actions/checkout@v4

- name: Create and activate conda environment
uses: conda-incubator/setup-miniconda@v2 # we need conda for asv env management
with:
python-version: ${{ matrix.python-version }}
activate-environment: asv-only # will activate this conda environment

- name: Install asv
shell: bash -l {0}
run: |
conda activate asv-only
# install asv
python -mpip install --upgrade pip
python -mpip install asv
pip install --upgrade pip
mpip install asv
- name: Run asv check
shell: bash -l {0}
Expand Down

0 comments on commit 61d4fa5

Please sign in to comment.