-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (44 loc) · 1.16 KB
/
unittest.yaml
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: unittest
on:
pull_request:
branches: [ master ]
paths-ignore:
- LICENSE
- '**.md'
- .github/workflows/faux-unittest.yaml
- .github/workflows/faux-crucible-ci.yaml
- 'docs/**'
- engine/engine-script-library.py
- engine/engine-script.py
workflow_dispatch:
concurrency:
group: ${{ github.ref }}/unittest
cancel-in-progress: true
jobs:
blockbreaker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
cd util
python3 -m venv .venv
source .venv/bin/activate
pip install pytest pytest-html jsonschema
- name: Run unit tests
run: |
cd util
source .venv/bin/activate
pytest -v --html=report.html --self-contained-html blockbreaker.py validate_run_file.py tests/*.py
- name: Upload html report
uses: actions/upload-artifact@v3
with:
name: report
path: util/report.html
unittest-complete:
runs-on: ubuntu-latest
needs:
- blockbreaker
steps:
- name: Confirm Success
run: echo "unittest-complete"