Skip to content

Commit

Permalink
y
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-kaplan committed Apr 25, 2023
1 parent 2a3944b commit 6ef21f3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/fbf-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run:
shell: bash -elo pipefail {0}
steps:
- run: ls -l /usr/share
- run: ls -l /usr/share/miniconda
- uses: actions/checkout@v3

- name: restore miniconda cache
Expand All @@ -28,7 +28,7 @@ jobs:
# I tried and rejected the existing setup-miniconda action,
# because it wipes out a bunch of files like ~/.profile,
# ~/.bashrc, ~/.bash_profile in a way that (a) won't interact
# well with other actions that need to modify the shell
# well with other actions that also need to modify the shell
# environment, and (b) doesn't play well with caching (you can't
# cache the deletion of a file). Also this way seems to take
# about half the time (though that might just be random
Expand Down Expand Up @@ -63,10 +63,6 @@ jobs:
run: source ${{env.CONDA_PATH}}/etc/profile.d/conda.sh && mamba create -n fbfmaproom --file fbfmaproom/conda-linux-64.lock
if: steps.restore-fbfmaproom-env.outputs.cache-hit != 'true'

- name: clean up fbfmaproom environment to reduce cache size
run: source ${{env.CONDA_PATH}}/etc/profile.d/conda.sh && conda clean -afy
if: steps.restore-fbfmaproom-env.outputs.cache-hit != 'true'

- name: save fbfmaproom conda environment cache
uses: actions/cache/save@v3
with:
Expand All @@ -75,4 +71,4 @@ jobs:
if: steps.restore-fbfmaproom-env.outputs.cache-hit != 'true'

- name: run fbf tests
run: source ${{env.CONDA_PATH}}/etc/profile.d/conda.sh && conda activate fbfmaproom && cd fbfmaproom && CONFIG=fbfmaproom-sample.yaml python -m pytest tests/test_pingrid.py
run: source ${{env.CONDA_PATH}}/etc/profile.d/conda.sh && conda activate fbfmaproom && cd fbfmaproom && CONFIG=fbfmaproom-sample.yaml python -m pytest

0 comments on commit 6ef21f3

Please sign in to comment.