-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (40 loc) · 1.17 KB
/
test.yml
File metadata and controls
45 lines (40 loc) · 1.17 KB
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
39
40
41
42
43
44
45
name: Test
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
pull_request:
push:
branches:
- "master"
- "next"
workflow_dispatch:
jobs:
execute_notebooks:
name: Execute notebooks
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: freud-examples
- name: Create Python Environment
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
with:
pixi-version: v0.54.1
cache: false
activate-environment: true
manifest-path: freud-examples/pixi.toml
- name: Display freud version
run: |-
python3 -c "import freud; print(freud.__version__)"
# clone the tutorials and run them
- name: List notebooks
run: ls **/*.ipynb
working-directory: freud-examples
- name: Execute notebooks
run: |
for i in examples module_intros
do
echo "Running notebooks in: $i" && jupyter nbconvert --execute --inplace $i/*.ipynb || exit 1
done
working-directory: freud-examples