From ee8ac03023226a8b8e6962f77c5bcb0fb11581c4 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Tue, 5 Nov 2024 01:56:41 +0100 Subject: [PATCH] Update code coverage CI config --- .github/workflows/Check.yml | 10 +++------- .github/workflows/Test.yml | 2 -- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/Check.yml b/.github/workflows/Check.yml index cf8f2f9..0275c58 100644 --- a/.github/workflows/Check.yml +++ b/.github/workflows/Check.yml @@ -20,8 +20,6 @@ jobs: - '1.10' - '1' - 'nightly' - env: - coverage_flag: ${{ (matrix.version == '1.6' || matrix.version == '1.7') && 'user' || '@' }} steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 @@ -30,20 +28,18 @@ jobs: - uses: julia-actions/cache@v2 - name: Install dependencies run: | - julia --color=yes --project --code-coverage=${{ env.coverage_flag }} -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()' + julia --color=yes --project --code-coverage=@ -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()' - name: Run Runic run: | - git ls-files -z -- '*.jl' | xargs -0 julia --color=yes --project --code-coverage=${{ env.coverage_flag }} -m Runic --check --diff + git ls-files -z -- '*.jl' | xargs -0 julia --color=yes --project --code-coverage=@ -m Runic --check --diff if: ${{ matrix.version == 'nightly' }} - name: Run Runic run: | - git ls-files -z -- '*.jl' | xargs -0 julia --color=yes --project --code-coverage=${{ env.coverage_flag }} -e 'using Runic; exit(Runic.main(ARGS))' -- --check --diff + git ls-files -z -- '*.jl' | xargs -0 julia --color=yes --project --code-coverage=@ -e 'using Runic; exit(Runic.main(ARGS))' -- --check --diff 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 80a63fb..00fff31 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -35,10 +35,8 @@ 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' }}