Skip to content

Commit

Permalink
chore: revert to mamba for GHA test env
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Feb 22, 2024
1 parent 9f598bd commit 45c9b7b
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,28 @@ jobs:
- name: Switch to Current Branch
run: git checkout ${{ env.BRANCH }}

# Install package and deps with pip
- name: Install package
run: |
python -m pip install --upgrade pip
python -m pip install -e .[test]
# Install Mambaforge with conda-forge dependencies
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: invert4geom
environment-file: env/testing_env.yml
python-version: ${{ matrix.python-version }}
channels: conda-forge,nodefaults
channel-priority: strict
miniforge-version: latest
miniforge-variant: Mambaforge
mamba-version: "*"
use-mamba: true
auto-activate-base: false

# Show installed pkg information for postmortem diagnostic
- name: List installed packages
run: pip list
run: mamba list

# Install the package in editable mode
- name: Install local package
run: pip install -e .

- name: Run the tests
run: >-
Expand Down

0 comments on commit 45c9b7b

Please sign in to comment.