-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 924 Bytes
/
unit.yml
File metadata and controls
36 lines (35 loc) · 924 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
jobs:
unittest:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: 3.13
- env:
EXTRA_MODULES: ''
name: Install pip dependencies
run: |-
if [ -n "$EXTRA_MODULES" ]; then
pip install $EXTRA_MODULES
fi
if [ -f ../pip-options.txt ]; then
cp ../pip-options.txt .
fi
if [ ! -f pip-options.txt ]; then
touch pip-options.txt
fi
pip install -r requirements.txt -r pip-options.txt
pip install -r requirements-dev.txt -r pip-options.txt || true
- name: Type Check
run: mypy *.py --check-untyped-defs
- name: Run Tests
run: |-
coverage run -m unittest tests/*.py
coverage report -m --fail-under=70
name: Unit Test
'on':
pull_request: {}