-
Notifications
You must be signed in to change notification settings - Fork 49
44 lines (41 loc) · 1.16 KB
/
test-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: "Test Jupyter Notebooks"
on:
push:
branches:
- main
- gtir # TODO(tehrengruber): remove after GTIR refactoring #1582
pull_request:
branches:
- main
- gtir # TODO(tehrengruber): remove after GTIR refactoring #1582
jobs:
test-notebooks:
strategy:
matrix:
python-version: ["3.10", "3.11"]
os: ["ubuntu-latest"]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
**/pyproject.toml
**/constraints.txt
**/requirements-dev.txt
- name: Install python dependencies
run: |
python -m pip install -c ./constraints.txt pip setuptools wheel
python -m pip install -r ./requirements-dev.txt
- name: Run tox tests
env:
NUM_PROCESSES: auto
shell: bash
run: |
pyversion=${{ matrix.python-version }}
pyversion_no_dot=${pyversion//./}
tox run -e notebooks-py${pyversion_no_dot}