From 58800282ef2f4f55e03268daca8a58c792fd9f2f Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Mon, 4 Sep 2023 08:52:13 +0200 Subject: [PATCH 1/2] CI: update codecov action --- .github/workflows/tests.yml | 58 ++++--------------------------------- 1 file changed, 6 insertions(+), 52 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6138c705f..ba8d77854 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -106,18 +106,11 @@ jobs: - name: Run tests run: >- - python -m pytest --showlocals -vv --cov - --cov-report=xml:coverage-${{ matrix.python }}.xml + python -m pytest --showlocals -vv --cov --cov-report=xml - - name: Send coverage report - uses: codecov/codecov-action@v1 + - name: Upload coverage report + uses: codecov/codecov-action@v3 if: ${{ always() }} - env: - PYTHON: ${{ matrix.python }} - with: - flags: tests - env_vars: PYTHON - name: ${{ matrix.python }} msvc: runs-on: windows-latest @@ -230,20 +223,9 @@ jobs: - name: Run tests run: >- - python -m pytest --showlocals -vv --cov - --cov-report=xml:coverage-${{ matrix.python }}.xml + python -m pytest --showlocals -vv shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -leo pipefail -o igncr {0} - - name: Send coverage report - uses: codecov/codecov-action@v1 - if: ${{ always() }} - env: - PYTHON: cygwin-${{ matrix.python }} - with: - flags: tests - env_vars: PYTHON - name: cygwin-${{ matrix.python }} - pyston: runs-on: ubuntu-20.04 strategy: @@ -275,18 +257,7 @@ jobs: - name: Run tests run: >- - pyston -m pytest --showlocals -vv --cov - --cov-report=xml:coverage-pyston.xml - - - name: Send coverage report - uses: codecov/codecov-action@v1 - if: ${{ always() }} - env: - PYTHON: pyston - with: - flags: tests - env_vars: PYTHON - name: pyston + pyston -m pytest --showlocals -vv homebrew: runs-on: macos-latest @@ -324,18 +295,7 @@ jobs: - name: Run tests run: >- - python -m pytest --showlocals -vv --cov - --cov-report=xml:coverage-homebrew-${{ matrix.python }}.xml - - - name: Send coverage report - uses: codecov/codecov-action@v1 - if: ${{ always() }} - env: - PYTHON: homebrew-${{ matrix.python }} - with: - flags: tests - env_vars: PYTHON - name: homebrew-${{ matrix.python }} + python -m pytest --showlocals -vv mypy: runs-on: ubuntu-latest @@ -356,9 +316,3 @@ jobs: - name: Run mypy run: mypy -p mesonpy - - # tests-pass: - # needs: [test, cygwin, pyston, homebrew, mypy] - # runs-on: ubuntu-latest - # steps: - # - run: echo "All jobs passed" From 857667b92562c31e6b47ea210f1f1185a0de43e9 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Mon, 4 Sep 2023 09:44:34 +0200 Subject: [PATCH 2/2] CI: tweak codecov reports configuration --- codecov.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index e2937ade6..bca7461cb 100644 --- a/codecov.yml +++ b/codecov.yml @@ -7,7 +7,8 @@ coverage: status: project: default: - informational: true + target: auto + threshold: 10% patch: default: informational: true