-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (41 loc) · 1.08 KB
/
pytest.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
name: pytest
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 8 * * 0'
jobs:
pytest:
name: pytest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
py: ['3.8']
weldx_version:
- 'weldx==0.6.0'
- 'weldx'
- 'git+https://github.com/BAMWelDX/weldx.git'
env:
WELDX_VERSION: ${{ matrix.weldx_version }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('.github/workflows/pytest.yml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: pip installs
run: |
pip install wheel
pip install asdf==2.11.1 $WELDX_VERSION weldx-widgets pytest nbval ipympl
- name: run pytest on notebook
run: |
pytest --color=yes --nbval-lax --current-env iiw2021_CXII_fabry_cagtay_01.ipynb