mirror of
https://github.com/pacnpal/pip-add.git
synced 2025-12-20 04:01:05 -05:00
Update python-tests.yml
This commit is contained in:
11
.github/workflows/python-tests.yml
vendored
11
.github/workflows/python-tests.yml
vendored
@@ -20,11 +20,18 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install .
|
pip install .
|
||||||
pip install pytest pytest-cov
|
pip install pytest pytest-cov
|
||||||
- name: Run tests
|
- name: Run coverage & upload to Codecov
|
||||||
run: |
|
run: |
|
||||||
pytest tests
|
|
||||||
pytest --cov --cov-report=xml
|
pytest --cov --cov-report=xml
|
||||||
- name: Upload results to Codecov
|
- name: Upload results to Codecov
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
- name: Run pytest tests
|
||||||
|
run: |
|
||||||
|
pytest --cov --junitxml=junit.xml -o junit_family=legacy
|
||||||
|
- name: Upload test results to Codecov
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
uses: codecov/test-results-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user