-
Notifications
You must be signed in to change notification settings - Fork 50
44 lines (41 loc) · 1.24 KB
/
run-notebooks.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
39
40
41
42
43
44
name: Run Jupyter Notebooks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
prepare:
runs-on: syne-tune_ubuntu-latest_16-core
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: check out Syne Tune
uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
- name: Install dev dependencies
run: python -m pip install -e '.[dev]'
- name: Convert notebooks to python scripts
id: set-matrix
run: python ./.github/workflows/utils/notebooks2scripts.py
- name: Upload converted python script
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: converted_notebooks
path: examples/notebooks/
tests:
needs: prepare
strategy:
fail-fast: false
matrix:
script: ${{ fromJSON(needs.prepare.outputs.matrix)}}
uses: ./.github/workflows/run-syne-tune.yml
with:
download-artifact-name: converted_notebooks
download-artifact-path: examples/notebooks/
script-path: examples/notebooks/${{ matrix.script }}
extras-require: basic
additional-command: pip install xgboost