Skip to content

Commit

Permalink
Use Conda for pytest job
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed May 1, 2024
1 parent 3a11122 commit a834950
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ env:
PYTEST_ADDOPTS: --color=yes
PIP_PROGRESS_BAR: "off"

defaults:
run:
# -l: login shell, needed when using Conda:
shell: bash -l {0}

jobs:

code-formatting:
Expand Down Expand Up @@ -57,9 +62,11 @@ jobs:
steps:
- if: matrix.install-mode == 'dev'
uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: ${{ matrix.install-mode == 'dev' && 'parameter-sweep-dev' || 'parameter-sweep' }}
- if: matrix.install-mode == 'dev'
name: Install (dev)
run: |
Expand Down

0 comments on commit a834950

Please sign in to comment.