From 4017cf75ab6d95a22ef0af7a8f5ee51e805f51c8 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Fri, 14 Jun 2024 10:36:28 +0200 Subject: [PATCH] Limit Codecov uploads to certain Julia version. --- .github/workflows/Check.yml | 2 ++ .github/workflows/Test.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/Check.yml b/.github/workflows/Check.yml index 2243cd7..061df64 100644 --- a/.github/workflows/Check.yml +++ b/.github/workflows/Check.yml @@ -43,8 +43,10 @@ jobs: julia --color=yes --project --code-coverage=${{ env.coverage_flag }} -e 'using Runic; exit(Runic.main(ARGS))' -- --check --diff $(git ls-files -- '*.jl') if: ${{ matrix.version != 'nightly' }} - uses: julia-actions/julia-processcoverage@v1 + if: ${{ matrix.version == '1' || matrix.version == 'nightly' }} - uses: codecov/codecov-action@v4 with: file: lcov.info env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + if: ${{ matrix.version == '1' || matrix.version == 'nightly' }} diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 2c19791..8c53dea 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -38,8 +38,10 @@ jobs: - uses: julia-actions/cache@v2 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 + if: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }} - uses: codecov/codecov-action@v4 with: file: lcov.info env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + if: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }}