-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.15 KB
/
coverage.yml
File metadata and controls
36 lines (34 loc) · 1.15 KB
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
name: coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test_coverage: # test coverage job
name: test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run:
# pip install build
pip install pytest
pip install pytest-cov
pip install numpy
pip install matplotlib
- name: Run tests and check coverage
run: (cd tests && ./check_coverage.sh pytest)
- name: Run tests and generate coverarge html
run: (cd tests && ./run_test.sh CI --cov=AutoDiff --cov-report=html:htmlcov)
# - name: Build and install thhe project in the container (using PEP517/518)
# run: (python -m build --wheel && python -m pip install dist/*)
# - name: Run tests and generate coverarge
# run: pytest --cov=AutoDiff tests/. --cov-report=xml
# - name: Run tests and generate coverarge html
# run: (cd tests && ./run_test.sh CI --cov=cs107_autodiff --cov-report=html:htmlcov)