From fd280288e40141f562bb300d1c6f634e4f16824e Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 26 Jul 2024 16:48:25 +0300 Subject: [PATCH] fix codecov coverage path --- .github/workflows/ci.yml | 60 +++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 209e26f..9953db5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,37 +56,45 @@ jobs: run: make tests-ci # BUG WITH @v4: https://github.com/actions/upload-artifact/issues/478 - - uses: actions/upload-artifact@v3 - with: - name: coverage-xml - path: coverage.xml - - codecov: - needs: - - lint - - test - runs-on: ubuntu-latest - permissions: - security-events: write - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - name: Download Artifacts - uses: actions/download-artifact@v4 - with: - name: coverage-xml - path: coverage.xml - merge-multiple: true +# - uses: actions/upload-artifact@v3 +# with: +# name: coverage-artifact-${{ matrix.python-version }} +# path: coverage-${{ matrix.python-version }}.xml - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.0.1 + uses: codecov/codecov-action@v4 with: - files: coverage.xml + file: ./coverage.xml token: ${{ secrets.CODECOV_TOKEN }} +# codecov: +# runs-on: ubuntu-latest +# permissions: +# security-events: write +# +# needs: +# - lint +# - test +# +# steps: +# - uses: actions/checkout@v4 +# - uses: actions/setup-python@v5 +# with: +# python-version: "3.12" +# +# - name: Download Artifacts +# uses: actions/download-artifact@v4 +# with: +# name: coverage-xml +# path: coverage.xml +# merge-multiple: true +# +# - name: Upload coverage reports to Codecov +# uses: codecov/codecov-action@v4.0.1 +# with: +# files: coverage-*.xml +# token: ${{ secrets.CODECOV_TOKEN }} + # code_quality: # needs: test # runs-on: ubuntu-latest