Skip to content

Commit 8915c97

Browse files
authored
Merge pull request #59 from neuromatch/release-v0.1.1
Fix bugs from the first draft
2 parents 27ebcbc + 71a7d9c commit 8915c97

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

.github/actions/check-notebooks/action.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,26 @@ runs:
4343
# with:
4444
# output: " "
4545

46+
- name: Get changed files
47+
if: "!contains(env.COMMIT_MESSAGE, 'skip ci')"
48+
id: changed-files
49+
uses: tj-actions/changed-files@v35
50+
51+
- name: List all changed files
52+
run: |
53+
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
54+
echo "$file was changed."
55+
done
56+
shell: bash -l {0}
57+
4658
- name: Get notebooks
4759
run: |
4860
if ${{ inputs.run_all == 'true' }}; then
4961
# nbs="tutorials/*/*Tutorial*.ipynb";
5062
nbs="tutorials/W2D5_*/*Tutorial*.ipynb";
5163
else
52-
nbs=`python ci/select_notebooks.py ${{ steps.changes.outputs.files }}`;
64+
nbs=`python ci/select_notebooks.py ${{ steps.changed-files.outputs.all_changed_files }}`;
65+
# nbs=`python ci/select_notebooks.py ${{ steps.changes.outputs.files }}`;
5366
fi
5467
echo "NBS=$nbs" >> $GITHUB_ENV
5568
shell: bash -l {0}

.github/actions/setup/action.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ inputs:
1010
runs:
1111
using: composite
1212
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
persist-credentials: false
17+
fetch-depth: 0
18+
ref: ${{ github.head_ref }}
1319
# - name: Set up Python (conda)
1420
# uses: conda-incubator/setup-miniconda@v3
1521
# with:

.github/workflows/notebook-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Run Notebooks
5656
uses: ./.github/actions/check-notebooks
5757
with:
58-
run_all: 'true'
58+
run_all: 'false'
5959
# exec_flag: '--check-only'
6060
exec_flag: '--execute'
6161
# exercise-continue-on-error: true

0 commit comments

Comments
 (0)