mirror of
https://github.com/pacnpal/pip-add.git
synced 2026-02-04 19:45:19 -05:00
Fix CI failure: Add package installation before running tests in publish.yml
Co-authored-by: pacnpal <183241239+pacnpal@users.noreply.github.com>
This commit is contained in:
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@@ -27,6 +27,7 @@ jobs:
|
|||||||
pip install build
|
pip install build
|
||||||
- name: Run Pytest tests
|
- name: Run Pytest tests
|
||||||
run: |
|
run: |
|
||||||
|
pip install .
|
||||||
pip install pytest pytest-cov
|
pip install pytest pytest-cov
|
||||||
pytest --cov --cov-report=xml
|
pytest --cov --cov-report=xml
|
||||||
- name: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
|
|||||||
50
coverage.xml
Normal file
50
coverage.xml
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<coverage version="7.13.1" timestamp="1769169637292" lines-valid="26" lines-covered="26" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
|
||||||
|
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.13.1 -->
|
||||||
|
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
|
||||||
|
<sources>
|
||||||
|
<source>/home/runner/work/pip-add/pip-add</source>
|
||||||
|
</sources>
|
||||||
|
<packages>
|
||||||
|
<package name="tests" line-rate="1" branch-rate="0" complexity="0">
|
||||||
|
<classes>
|
||||||
|
<class name="test_cli.py" filename="tests/test_cli.py" complexity="0" line-rate="1" branch-rate="0">
|
||||||
|
<methods/>
|
||||||
|
<lines>
|
||||||
|
<line number="1" hits="1"/>
|
||||||
|
<line number="2" hits="1"/>
|
||||||
|
<line number="14" hits="1"/>
|
||||||
|
<line number="16" hits="1"/>
|
||||||
|
<line number="18" hits="1"/>
|
||||||
|
<line number="20" hits="1"/>
|
||||||
|
<line number="22" hits="1"/>
|
||||||
|
<line number="24" hits="1"/>
|
||||||
|
<line number="26" hits="1"/>
|
||||||
|
<line number="28" hits="1"/>
|
||||||
|
<line number="30" hits="1"/>
|
||||||
|
<line number="32" hits="1"/>
|
||||||
|
<line number="34" hits="1"/>
|
||||||
|
<line number="36" hits="1"/>
|
||||||
|
<line number="38" hits="1"/>
|
||||||
|
<line number="40" hits="1"/>
|
||||||
|
<line number="42" hits="1"/>
|
||||||
|
<line number="44" hits="1"/>
|
||||||
|
<line number="46" hits="1"/>
|
||||||
|
<line number="48" hits="1"/>
|
||||||
|
</lines>
|
||||||
|
</class>
|
||||||
|
<class name="test_utils.py" filename="tests/test_utils.py" complexity="0" line-rate="1" branch-rate="0">
|
||||||
|
<methods/>
|
||||||
|
<lines>
|
||||||
|
<line number="1" hits="1"/>
|
||||||
|
<line number="2" hits="1"/>
|
||||||
|
<line number="4" hits="1"/>
|
||||||
|
<line number="6" hits="1"/>
|
||||||
|
<line number="8" hits="1"/>
|
||||||
|
<line number="10" hits="1"/>
|
||||||
|
</lines>
|
||||||
|
</class>
|
||||||
|
</classes>
|
||||||
|
</package>
|
||||||
|
</packages>
|
||||||
|
</coverage>
|
||||||
Reference in New Issue
Block a user