Skip to content

Commit

Permalink
chore: replace mamba with pip for GHA test env install
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Feb 22, 2024
1 parent 32b6c3a commit 421cffe
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- uses: pre-commit/action@v3.0.0
- uses: pre-commit/action@v3.0.1
with:
extra_args: --hook-stage manual --all-files
- name: Run PyLint
Expand Down Expand Up @@ -68,32 +68,17 @@ jobs:
- name: Switch to Current Branch
run: git checkout ${{ env.BRANCH }}

# Install Mambaforge with conda-forge dependencies
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: invert4geom
environment-file: env/test_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
# Install package and deps with pip
- name: Install package
run: python -m pip install -e .[test]

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

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

- name: Run the tests
run: >-
pytest -ra --cov --cov-report=xml --cov-report=term --durations=20
- name: Upload coverage report
uses: codecov/codecov-action@v3.1.4
uses: codecov/codecov-action@v4.0.1

0 comments on commit 421cffe

Please sign in to comment.