-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 813 Bytes
/
unit_test.yml
File metadata and controls
41 lines (34 loc) · 813 Bytes
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
name: Unit Test
on:
workflow_dispatch:
push:
paths:
- 'ww/**'
- 'tests/**'
pull_request:
paths:
- 'ww/**'
- 'tests/**'
concurrency:
group: 'unit-test'
cancel-in-progress: false
jobs:
test_job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.13.2
uses: actions/setup-python@v4
with:
python-version: "3.13.2"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install coverage
- name: Run unit tests
run: |
export PYTHONPATH=$PYTHONPATH:.
python3 -m coverage run -m unittest discover tests
python3 -m coverage report -m