-
-
Notifications
You must be signed in to change notification settings - Fork 59
53 lines (43 loc) · 1.33 KB
/
python_tests.yml
File metadata and controls
53 lines (43 loc) · 1.33 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
46
47
48
49
50
51
52
53
name: Python tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
create:
branches: [master]
tags: ['**']
jobs:
test:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{ matrix.platform }}
env:
TZ: Europe/Berlin
FORCE_COLOR: true
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev,notebooks]"
- name: Run pytest
run: |
pytest tests/ -v --tb=short -m "not slow"
- name: Test RainCloud_Plot.ipynb
run: |
jupyter nbconvert --to notebook --ExecutePreprocessor.kernel_name=python3 --execute RainCloud_Plot.ipynb
- name: Test tutorial_python/raincloud_tutorial_python.ipynb
run: |
jupyter nbconvert --to notebook --ExecutePreprocessor.kernel_name=python3 --execute tutorial_python/raincloud_tutorial_python.ipynb