From 7abc43e0c4fa705c9ca21ccbb62aefe95a2e2a4b Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Wed, 29 May 2024 17:58:45 -0700 Subject: [PATCH] Remove redundant CodeCoverage.yml action ci.yml is already computing coverage --- .github/workflows/CodeCoverage.yml | 35 ------------------------------ .github/workflows/ci.yml | 5 +++++ 2 files changed, 5 insertions(+), 35 deletions(-) delete mode 100644 .github/workflows/CodeCoverage.yml diff --git a/.github/workflows/CodeCoverage.yml b/.github/workflows/CodeCoverage.yml deleted file mode 100644 index 5bbf305ece..0000000000 --- a/.github/workflows/CodeCoverage.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Code Coverage - -on: - push: - tags: '*' - pull_request: - -jobs: - coverage: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2.2.0 - - - name: Set up Julia - uses: julia-actions/setup-julia@latest - with: - version: '1.10' - - - name: Test with coverage - run: | - julia --project -e 'using Pkg; Pkg.instantiate()' - julia --project -e 'using Pkg; Pkg.test(coverage=true)' - - - name: Generate coverage file - run: julia --project -e 'using Pkg; Pkg.add("Coverage"); - using Coverage; - LCOV.writefile("coverage-lcov.info", Codecov.process_folder())' - if: success() - - - name: Submit coverage - uses: codecov/codecov-action@v1.0.7 - with: - token: ${{secrets.CODECOV_TOKEN}} - if: success() diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d57903f8f..9f0c3b05b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,3 +46,8 @@ jobs: - uses: codecov/codecov-action@v1 with: file: lcov.info + - name: Submit coverage + if: ${{ matrix.version == '1.10' }} && ${{ matrix.os == 'ubuntu-latest' }} + uses: codecov/codecov-action@v1.0.7 + with: + token: ${{secrets.CODECOV_TOKEN}}