This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
73 lines (71 loc) · 1.87 KB
/
action_unit_test.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Action Unit Test
on: [push, pull_request]
jobs:
unit-test:
strategy:
fail-fast: false
matrix:
cfg:
- os: ubuntu-latest
python-version: "3.6"
- os: ubuntu-latest
python-version: "3.7"
- os: ubuntu-latest
python-version: "3.8"
- os: ubuntu-latest
python-version: "3.9"
- os: macos-latest
python-version: "3.6"
- os: macos-latest
python-version: "3.7"
- os: macos-latest
python-version: "3.8"
- os: macos-latest
python-version: "3.9"
runs-on: ${{ matrix.cfg.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.cfg.python-version }}
- uses: "./"
name: run_passing_nbs
with:
workdir: "./__tests__/resources"
notebooks: |
passing.ipynb
'sub dir/another passing.ipynb'
path-output: .
extra-pytest-args: |
--capture=tee-sys
-v
- uses: "./"
name: glob_passing_nbs
with:
workdir: "./__tests__/resources"
notebooks: |
sub dir/*
- uses: "./"
name: ignore_failing_nb
with:
workdir: "./__tests__/resources"
ignore: |
failing.ipynb
verbose: true
path-output: .
- uses: "./"
name: glob_ignore_nbs
with:
workdir: "./__tests__/resources"
ignore: |
*.ipynb
verbose: true
- uses: "./"
name: fail_running_all
id: run
with:
workdir: "./__tests__/resources"
verbose: true
continue-on-error: true
- run: '[[ ${{ steps.run.outcome }} == "failure" ]]'
shell: bash