Skip to content

Commit

Permalink
fix min dep setup
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers committed Dec 4, 2024
1 parent eaa3241 commit be5b9c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/run_min_dep_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,18 @@ jobs:
git fetch --tags --force # Retrieve annotated tags.
# Have to use conda to install hdf5 so mac (I guess m1/2) runners work.
- uses: mamba-org/setup-micromamba@v1
- uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: '1.5.8-0' # versions: https://github.com/mamba-org/micromamba-releases
micromamba-version: '2.0.2-1' # versions: https://github.com/mamba-org/micromamba-releases
environment-file: environment.yml
init-shell: >-
bash
powershell
cache-environment: true
cache-environment-key: environment-${{ steps.date.outputs.date }}
post-cleanup: 'all'
create-args: >-
python=${{ matrix.python-version }}
# Not sure why this is needed but it appears to be the case
- name: fix env
Expand All @@ -69,6 +72,11 @@ jobs:
eval "$(micromamba shell hook --shell bash)"
micromamba activate dascore
- name: print python version
shell: bash -el {0}
run: |
python --version
- name: install hdf5
if: matrix.os=='macos-latest'
shell: bash -l {0}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/runtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ jobs:
cache-environment-key: environment-${{ steps.date.outputs.date }}
post-cleanup: 'all'
create-args: >-
python=${{ matrix.python_version }}
numpy
python=${{ matrix.python-version }}
# Not sure why this is needed but it appears to be the case
- name: fix env
Expand All @@ -68,6 +67,11 @@ jobs:
eval "$(micromamba shell hook --shell bash)"
micromamba activate dascore
- name: print python version
shell: bash -el {0}
run: |
python --version
- name: install dascore
shell: bash -el {0}
run: |
Expand Down

0 comments on commit be5b9c8

Please sign in to comment.