File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868 pytest --ignore ./tests/test_manifests.py
6969 env :
7070 LOADER : ${{ matrix.loader }}
71- # coverage:
72- # needs: [test]
73- # FIXME
71+ coverage :
72+ runs-on : ubuntu-latest
73+ steps :
74+ - uses : actions/checkout@v4
75+
76+ - name : Set up Python
77+ uses : actions/setup-python@v5
78+ with :
79+ python-version : 3.12
80+
81+ - name : Install dependencies
82+ run : |
83+ pip install pytest pytest-cov
84+
85+ - name : Run tests with coverage
86+ run : |
87+ pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=src tests/ | tee pytest-coverage.txt
88+
89+ - name : Pytest coverage comment
90+ uses : MishaKav/pytest-coverage-comment@main
91+ with :
92+ pytest-coverage-path : ./pytest-coverage.txt
93+ junitxml-path : ./pytest.xml
Original file line number Diff line number Diff line change 44 pip install -e .
55
66test :
7- pytest
7+ pytest --cov=pyld
88
99upgrade-submodules :
1010 git submodule update --remote --init --recursive
Original file line number Diff line number Diff line change 11ruff
22pytest
3+ pytest-cov
You can’t perform that action at this time.
0 commit comments