-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (46 loc) · 1.75 KB
/
notebooks_dispatch.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
45
46
47
48
49
50
51
52
53
name: Notebooks Dispatch
on:
# Allows wourkflow to be called by other workflows
workflow_call:
inputs:
clone-irdb:
type: boolean
description: If True, use clone of IRDB repo instead of package download.
jobs:
run_notebooks:
name: ${{ matrix.os }}, ${{ matrix.python-version }}
strategy:
matrix:
# Run all operating systems, because this is the first interaction
# that users have with ScopeSim / IRDB.
# However, only use minimum and maximum supported Python version,
# as the IRDB download often fails.
# As of 2023/07/19, this test still often fails. See
# https://github.com/AstarVienna/ScopeSim/issues/254
# For now, only run on one configuration, as having one green test
# is more useful than 5 green and one red. The others can be enabled
# once we fix the problem properly.
# os: [ubuntu-latest, windows-latest, macos-latest]
# python-version: ['3.8', '3.11']
os: [ubuntu-latest]
python-version: ["3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.3"
- name: Install dependencies
run: |
poetry install --with test --with dev --all-extras
poetry run pip install git+https://github.com/AstarVienna/ScopeSim_Data.git
- name: Run notebooks
env:
TQDM_MININTERVAL: 10
CLONE: ${{ inputs.clone-irdb && '--clone-irdb' || '' }}
run: poetry run ./runnotebooks.sh $CLONE --delete