mirror of
https://github.com/pacnpal/pip-add.git
synced 2025-12-19 19:51: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
|
||||
pip install .
|
||||
pip install pytest pytest-cov
|
||||
- name: Run tests
|
||||
- name: Run coverage & upload to Codecov
|
||||
run: |
|
||||
pytest tests
|
||||
pytest --cov --cov-report=xml
|
||||
- name: Upload results to Codecov
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
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