-
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.
Make caches on branches read only (#1327)
* make caches on branches match base branch as read only * bug with extra line * another typo * remove re-run tests on ready for nwb streaming test
- Loading branch information
1 parent
8385a4c
commit ed9f3f5
Showing
6 changed files
with
28 additions
and
25 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Full spikeinterface tests codecov | |
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 12 * * *" # Daily at noon UCT | ||
- cron: "0 12 * * *" # Daily at noon UTC | ||
|
||
env: | ||
KACHERY_CLOUD_CLIENT_ID: ${{ secrets.KACHERY_CLOUD_CLIENT_ID }} | ||
|
@@ -21,7 +21,7 @@ jobs: | |
- name: Get current year-month | ||
id: date | ||
run: echo "date=$(date +'%Y-%m')" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
- uses: actions/cache/restore@v3 | ||
id: cache-venv | ||
with: | ||
path: ~/test_env | ||
|
@@ -34,24 +34,22 @@ jobs: | |
sudo apt update | ||
# this is for datalad and download testing datasets | ||
sudo apt install git | ||
# this is for spyking circus | ||
# sudo apt install mpich libmpich-dev | ||
# needed for correct operation of git/git-annex/DataLad | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CI Almighty" | ||
# this is for spyking circus | ||
# sudo apt install mpich libmpich-dev | ||
# create an environement (better for caching) | ||
python -m venv ~/test_env | ||
source ~/test_env/bin/activate | ||
python -m pip install -U pip # Official recommended way | ||
pip install setuptools wheel twine | ||
source ~/test_env/bin/activate | ||
pip install tabulate # This produces summaries at the end | ||
## clean some cache to avoid using old cache | ||
pip cache remove numpy | ||
pip cache remove hdbscan | ||
pip cache remove numba | ||
# herdingspikes need numpy to installed first, this numpy pre install will be removed when HS remove from testing | ||
pip install numpy==1.22 | ||
pip install -e .[test,extractors,full] | ||
pip install tabulate | ||
- name: git-annex install | ||
run: | | ||
wget https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz | ||
|
@@ -69,7 +67,7 @@ jobs: | |
id: vars | ||
run: | | ||
echo "HASH_EPHY_DATASET=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
- uses: actions/cache/restore@v3 | ||
id: cache-datasets | ||
env: | ||
# the key depend on the last comit repo https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git | ||
|
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 |
---|---|---|
|
@@ -2,13 +2,13 @@ name: Full spikeinterface tests | |
|
||
on: | ||
pull_request: | ||
types: [synchronize, opened, reopened, ready_for_review] | ||
types: [synchronize, opened, reopened] | ||
|
||
concurrency: # Cancel previous workflows on the same pull request | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
env: # For the sortingview backend | ||
KACHERY_CLOUD_CLIENT_ID: ${{ secrets.KACHERY_CLOUD_CLIENT_ID }} | ||
KACHERY_CLOUD_PRIVATE_KEY: ${{ secrets.KACHERY_CLOUD_PRIVATE_KEY }} | ||
|
||
|
@@ -29,11 +29,13 @@ jobs: | |
- name: Get current year-month | ||
id: date | ||
run: echo "date=$(date +'%Y-%m')" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
- uses: actions/cache/restore@v3 | ||
id: cache-venv | ||
with: | ||
path: ~/test_env | ||
key: ${{ runner.os }}-venv-${{ hashFiles('**/pyproject.toml') }}-${{ steps.date.outputs.date }} | ||
restore-keys: | | ||
${{ runner.os }}-venv- | ||
- name: Python version | ||
run: | | ||
python --version | ||
|
@@ -42,16 +44,14 @@ jobs: | |
sudo apt update | ||
# this is for datalad and download testing datasets | ||
sudo apt install git | ||
# this is for spyking circus | ||
# sudo apt install mpich libmpich-dev | ||
# needed for correct operation of git/git-annex/DataLad | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CI Almighty" | ||
# this is for spyking circus | ||
# sudo apt install mpich libmpich-dev | ||
# create an environement (better for caching) | ||
python -m venv ~/test_env | ||
source ~/test_env/bin/activate | ||
python -m pip install -U pip # Official recommended way | ||
pip install setuptools wheel twine | ||
source ~/test_env/bin/activate | ||
pip install tabulate # This produces summaries at the end | ||
## clean some cache to avoid using old cache | ||
pip cache remove numpy | ||
|
@@ -77,7 +77,7 @@ jobs: | |
id: vars | ||
run: | | ||
echo "HASH_EPHY_DATASET=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
- uses: actions/cache/restore@v3 | ||
id: cache-datasets | ||
env: | ||
# the key depend on the last comit repo https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git | ||
|
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