-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into fix_pynwb_version_icephys
- Loading branch information
Showing
4 changed files
with
55 additions
and
14 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Assess file changes | ||
|
||
on: | ||
workflow_call: | ||
# Map the workflow outputs to job outputs | ||
outputs: | ||
SOURCE_CHANGED: | ||
description: "Whether or not the files under /src/ were changed." | ||
value: ${{ jobs.build.outputs.SOURCE_CHANGED }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
# Map the job outputs to step outputs | ||
outputs: | ||
SOURCE_CHANGED: ${{ steps.source-changed.outputs.SOURCE_CHANGED }} | ||
|
||
name: Test changed-files | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/[email protected] | ||
|
||
- name: Assess Source Code Changes | ||
id: source-changed | ||
run: | | ||
echo "::set-output name=SOURCE_CHANGED::false" | ||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | ||
echo $file | ||
if [[ $file == "nwbinspector/"* || $file == "requirements"* || $file == "setup.py" || $file == "tests/"* ]] | ||
then | ||
echo "Source changed" | ||
echo "::set-output name=SOURCE_CHANGED::true" | ||
else | ||
echo "Source not changed" | ||
fi | ||
done |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Deploy tests | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
assess-file-changes: | ||
uses: neurodatawithoutborders/nwbinspector/.github/workflows/assess-file-changes.yml@dev | ||
|
||
run-tests: | ||
needs: assess-file-changes | ||
if: ${{ needs.assess-file-changes.outputs.SOURCE_CHANGED == 'true' }} | ||
uses: neurodatawithoutborders/nwbinspector/.github/workflows/testing.yml@dev |
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