mirror of https://github.com/eyhc1/rendercv.git
workflows: update tests.yaml
This commit is contained in:
parent
39729f9907
commit
f191f21987
|
@ -27,7 +27,7 @@ jobs:
|
|||
|
||||
- name: Lint with Ruff
|
||||
run: |
|
||||
python -m pip install ruff
|
||||
pip install .[tests]
|
||||
ruff --output-format=github .
|
||||
continue-on-error: true
|
||||
|
||||
|
@ -53,13 +53,10 @@ jobs:
|
|||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install pytest
|
||||
pip install .[tests]
|
||||
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pip install pytest coverage
|
||||
coverage run -m pytest tests/
|
||||
mv .coverage .coverage.${{ matrix.python-version }}.${{ matrix.os }}
|
||||
|
||||
|
@ -90,14 +87,14 @@ jobs:
|
|||
|
||||
- name: Combine coverage files
|
||||
run: |
|
||||
pip install coverage
|
||||
pip install .[tests]
|
||||
coverage combine coverage
|
||||
coverage report
|
||||
coverage html --show-contexts --title "RenderCV coverage for ${{ github.sha }}"
|
||||
|
||||
- name: Upload the coverage report to smokeshow
|
||||
run: |
|
||||
pip install smokeshow
|
||||
pip install smokeshow==0.4.0
|
||||
smokeshow upload ./htmlcov
|
||||
env:
|
||||
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
|
||||
|
|
Loading…
Reference in New Issue