Skip to content

Commit

Permalink
CI: use mamba
Browse files Browse the repository at this point in the history
Similar to what poppunk does
  • Loading branch information
mgalardini committed Nov 8, 2023
1 parent 500f327 commit f7862fe
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/azure_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,20 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
$CONDA/bin/conda env update --file environment.yml --name base
- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
- name: Install Conda environment from environment.yml
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.4.6-0'
environment-file: environment.yml
# persist on the same day.
cache-environment-key: environment-${{ steps.date.outputs.date }}
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
- name: Install and run_test.py
shell: bash -l {0}
run: |
PATH=$CONDA/bin/bin:$PATH
source $CONDA/bin/activate base
alias python=$CONDA/bin/python
python -m pip install --no-deps --ignore-installed .
pytest -v tests
cd tests && bash run_test.sh
cd tests && bash run_test.sh

0 comments on commit f7862fe

Please sign in to comment.