From f191f219876edb67e740c68b345a4442253e8bf2 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Wed, 28 Feb 2024 21:18:15 +0100 Subject: [PATCH] workflows: update tests.yaml --- .github/workflows/tests.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1758680..a81ddd7 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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}