-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed Github Workflows #251
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a0a5ead
Made run-tests workflow dependent on update-testing-data workflow
pauladkisson ce624f8
update awscli version
pauladkisson cfab180
pin wheel version to avoid future dependency conflicts
pauladkisson 2158025
updated awscli version in run-tests
pauladkisson 56cd15e
removed dependent run of run-tests
pauladkisson 587865d
commented out awscli commands only
pauladkisson 94ddfa0
refactored to trigger run-tests after update-testing-data
pauladkisson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
name: Full Tests | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # daily | ||
pull_request: | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: [update-testing-data] | ||
types: [completed] | ||
|
||
jobs: | ||
run: | ||
|
@@ -29,18 +30,17 @@ jobs: | |
pip install pytest-xdist | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CI Almighty" | ||
pip install wheel # needed for scanimage | ||
pip install wheel==0.41.2 # needed for scanimage | ||
|
||
- name: Install roiextractors with minimal requirements | ||
run: pip install .[test] | ||
|
||
- name: Run minimal tests | ||
run: pytest tests/test_internals -n auto --dist loadscope | ||
|
||
- name: Test full installation (-e needed for codecov report) | ||
run: pip install -e .[full] | ||
|
||
|
||
|
||
- name: Get ophys_testing_data current head hash | ||
id: ophys | ||
run: echo "::set-output name=HASH_OPHYS_DATASET::$(git ls-remote https://gin.g-node.org/CatalystNeuro/ophys_testing_data.git HEAD | cut -f1)" | ||
|
@@ -50,17 +50,6 @@ jobs: | |
with: | ||
path: ./ophys_testing_data | ||
key: ophys-datasets-042023-${{ matrix.os }}-${{ steps.ophys.outputs.HASH_OPHYS_DATASET }} | ||
- if: steps.cache-ophys-datasets.outputs.cache-hit == false | ||
name: Install and configure AWS CLI | ||
run: | | ||
pip install awscli==1.25.27 | ||
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
- if: steps.cache-ophys-datasets.outputs.cache-hit == false | ||
name: Download data from S3 | ||
run: aws s3 cp --recursive s3://${{ secrets.S3_GIN_BUCKET }}//ophys_testing_data ./ophys_testing_data | ||
|
||
|
||
|
||
- name: Run full pytest with coverage | ||
run: pytest -n auto --dist loadscope --cov=./ --cov-report xml:./codecov.xml | ||
|
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
name: Update testing data | ||
name: update-testing-data | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # daily | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -24,7 +26,7 @@ jobs: | |
pip install -U pip | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CI Almighty" | ||
pip install wheel # needed for scanimage | ||
pip install wheel==0.41.2 # needed for scanimage | ||
|
||
- name: Get ophys_testing_data current head hash | ||
id: ophys | ||
|
@@ -38,7 +40,7 @@ jobs: | |
- if: steps.cache-ophys-datasets.outputs.cache-hit == false | ||
name: Install and configure AWS CLI | ||
run: | | ||
pip install awscli==1.25.27 | ||
pip install awscli==1.29.56 | ||
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
- if: steps.cache-ophys-datasets.outputs.cache-hit == false | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If going this route, you'll probably want to add the 'on success' logic to allow early exit (otherwise will proceed to run tests and fail when it doesn't find a certain file/folder); I wonder if
success
is an allowed type for the trigger itself?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that seems reasonable. Apparently
on: workflow_run
only works on the default branch (see Issue), so I can't test it before merging? Kind of annoying.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This kind of thing is typical of GitHub Action devops stuff - it's the one situation where committing to main to debug stuff is OK IMO
I'll approve and merge this and let you continue messing with it