Skip to content

Commit

Permalink
feat: Update CI workflow to use Ubuntu latest for matrix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alsmith151 committed Jun 25, 2024
1 parent 256d8e8 commit b16cd32
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ jobs:
shell: bash -el {0}
run: |
pip install .[full]
pip install pytest-cov pytest-order pytest-xdist git+https://github.com/alsmith151/CoolBox.git
- name: Cache the complete environment
uses: actions/cache@v3
with:
path: ${{ env.CONDA }}/envs
key: ${{env.CACHE_ID_UNIQ}}
id: cache-conda-env-capcruncher
test:
runs-on: ${{ matrix.os }}
Expand All @@ -101,13 +93,24 @@ jobs:
key: ${{ env.CACHE_NUMBER }}
id: bowtie2_cache

- name: Restore capcruncher env
- name: Cache Conda env
uses: actions/cache@v3
with:
path: ${{ env.CONDA }}/envs
key: ${{env.CACHE_ID_UNIQ}}
id: cache-conda-env-capcruncher

key: conda-${{ runner.os }}--${{ runner.arch }}--${{
steps.get-date.outputs.today }}-${{
hashFiles('environment.yml') }}-${{ env.CACHE_NUMBER}}
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
id: cache-conda-env

- name: install the package
shell: bash -el {0}
run: |
pip install .[full]
pip install pytest-cov pytest-order pytest-xdist
- name: Run test for ${{ matrix.tests }}
shell: bash -el {0}
run: |
Expand Down

0 comments on commit b16cd32

Please sign in to comment.