-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (35 loc) · 1.03 KB
/
ci_validation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: ci_validation
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions: write-all
jobs:
build:
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3 # https://github.com/marketplace/actions/setup-miniconda
with:
activate-environment: exocore
environment-file: environment.yml
python-version: 3.12
auto-activate-base: false
- run: |
conda install nbconvert
- name: Gather changed notebooks
id: changed-files
uses: tj-actions/[email protected]
with:
files: |
**/*.ipynb
- name: Executing changed notebooks
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was updated, executing notebook"
jupyter nbconvert --template classic --to html --execute $file
done