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
|
- name: Lint with Ruff
|
||||||
run: |
|
run: |
|
||||||
python -m pip install ruff
|
pip install .[tests]
|
||||||
ruff --output-format=github .
|
ruff --output-format=github .
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
@ -53,13 +53,10 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
|
||||||
python -m pip install pytest
|
|
||||||
pip install .[tests]
|
pip install .[tests]
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pip install pytest coverage
|
|
||||||
coverage run -m pytest tests/
|
coverage run -m pytest tests/
|
||||||
mv .coverage .coverage.${{ matrix.python-version }}.${{ matrix.os }}
|
mv .coverage .coverage.${{ matrix.python-version }}.${{ matrix.os }}
|
||||||
|
|
||||||
|
@ -90,14 +87,14 @@ jobs:
|
||||||
|
|
||||||
- name: Combine coverage files
|
- name: Combine coverage files
|
||||||
run: |
|
run: |
|
||||||
pip install coverage
|
pip install .[tests]
|
||||||
coverage combine coverage
|
coverage combine coverage
|
||||||
coverage report
|
coverage report
|
||||||
coverage html --show-contexts --title "RenderCV coverage for ${{ github.sha }}"
|
coverage html --show-contexts --title "RenderCV coverage for ${{ github.sha }}"
|
||||||
|
|
||||||
- name: Upload the coverage report to smokeshow
|
- name: Upload the coverage report to smokeshow
|
||||||
run: |
|
run: |
|
||||||
pip install smokeshow
|
pip install smokeshow==0.4.0
|
||||||
smokeshow upload ./htmlcov
|
smokeshow upload ./htmlcov
|
||||||
env:
|
env:
|
||||||
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
|
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
|
||||||
|
|
Loading…
Reference in New Issue