-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82f6865
commit d3eb3ca
Showing
5 changed files
with
11 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ runs: | |
sudo apt install git | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CI Almighty" | ||
python -m venv ${{ github.workspace }}/test_env | ||
python -m venv ${{ github.workspace }}/test_env # Environment used in the caching step | ||
python -m pip install -U pip # Official recommended way | ||
source ${{ github.workspace }}/test_env/bin/activate | ||
pip install tabulate # This produces summaries at the end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,23 +30,14 @@ jobs: | |
- uses: actions/cache@v3 | ||
id: cache-venv | ||
with: | ||
path: ~/test_env | ||
path: ${{ github.workspace }}/test_env | ||
key: ${{ runner.os }}-venv-${{ steps.dependencies.outputs.hash }}-${{ steps.date.outputs.date }} | ||
- name: Cache found? | ||
run: echo "Cache-hit == ${{steps.cache-venv.outputs.cache-hit == 'true'}}" | ||
- name: Create the virtual environment to be cached | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CI Almighty" | ||
python -m venv ~/test_env # Environment used in the caching step | ||
source ~/test_env/bin/activate | ||
python -m pip install -U pip # Official recommended way | ||
# herdingspikes need numpy to installed first (!) | ||
pip install numpy==1.22 | ||
pip install -e .[test,extractors,full] | ||
create-data-cache-if-missing: | ||
uses: ./.github/actions/build-test-environment | ||
create-gin-data-cache-if-missing: | ||
name: Caching data env | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
|
@@ -61,7 +52,7 @@ jobs: | |
- uses: actions/cache@v3 | ||
id: cache-datasets | ||
with: | ||
path: ~/spikeinterface_datasets | ||
path: ${{ github.workspace }}/spikeinterface_datasets | ||
key: ${{ runner.os }}-datasets-${{ steps.repo_hash.outputs.dataset_hash }} | ||
- name: Cache found? | ||
run: echo "Cache-hit == ${{steps.cache-datasets.outputs.cache-hit == 'true'}}" | ||
|
@@ -82,11 +73,11 @@ jobs: | |
- name: Move the downloaded data to the right directory | ||
if: steps.cache-datasets.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir --parents --verbose ~/spikeinterface_datasets/ephy_testing_data/ | ||
mv --force ./ephy_testing_data ~/spikeinterface_datasets/ | ||
mkdir --parents --verbose ${{ github.workspace }}/spikeinterface_datasets/ephy_testing_data/ | ||
mv --force ./ephy_testing_data ${{ github.workspace }}/spikeinterface_datasets/ | ||
- name: Show size of the cache to assert data is downloaded | ||
run: | | ||
cd ~ | ||
cd ${{ github.workspace }} | ||
pwd | ||
du -hs spikeinterface_datasets | ||
cd spikeinterface_datasets | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters