From cd214bbdb07ff72a09ddc5a8378371f67cac4088 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Mon, 29 Sep 2025 15:23:37 +0100 Subject: [PATCH 1/2] no coveralls --- .github/workflows/Tests.yml | 36 +++++++++++------------------------- README.md | 2 +- 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index d64b7c440..6b059d925 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -66,47 +66,33 @@ jobs: steps: - name: Print matrix variables + run: | echo "OS: ${{ matrix.runner.os }}" echo "Julia version: ${{ matrix.runner.version }}" echo "Number of threads: ${{ matrix.runner.num_threads }}" echo "Test arguments: ${{ matrix.test.args }}" - - name: (De)activate coverage analysis - run: echo "COVERAGE=${{ matrix.runner.version == '1' && matrix.runner.os == 'ubuntu-latest' && matrix.runner.num_threads == 2 }}" >> "$GITHUB_ENV" - shell: bash + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: '${{ matrix.runner.version }}' + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + # TODO: Use julia-actions/julia-runtest when test_args are supported # Custom calls of Pkg.test tend to miss features such as e.g. adjustments for CompatHelper PRs # Ref https://github.com/julia-actions/julia-runtest/pull/73 - name: Call Pkg.test run: julia --color=yes --inline=yes --depwarn=yes --check-bounds=yes --threads=${{ matrix.runner.num_threads }} --project=@. -e 'import Pkg; Pkg.test(; coverage=parse(Bool, ENV["COVERAGE"]), test_args=ARGS)' -- ${{ matrix.test.args }} + - uses: julia-actions/julia-processcoverage@v1 - if: ${{ env.COVERAGE }} - - uses: codecov/codecov-action@v4 - if: ${{ env.COVERAGE }} + + - uses: codecov/codecov-action@v5 with: - fail_ci_if_error: true + files: lcov.info token: ${{ secrets.CODECOV_TOKEN }} - file: lcov.info - - uses: coverallsapp/github-action@v2 - if: ${{ env.COVERAGE }} - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: lcov.info - flag-name: run-${{ join(matrix.*, '-') }} - parallel: true - - finish: - needs: test - if: ${{ always() }} - runs-on: ubuntu-latest - steps: - - name: Coveralls Finished - uses: coverallsapp/github-action@v2 - with: - parallel-finished: true + fail_ci_if_error: true diff --git a/README.md b/README.md index 3e50141ad..21167ac58 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Tutorials API docs Tests -Coverage +Code Coverage ColPrac: Contributor's Guide on Collaborative Practices for Community Packages

From 230a786307d23244d01bad46417b353723425ae4 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Mon, 29 Sep 2025 15:51:59 +0100 Subject: [PATCH 2/2] use julia-actions/julia-runtest --- .github/workflows/Tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 6b059d925..e0598fb22 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -83,11 +83,11 @@ jobs: - uses: julia-actions/julia-buildpkg@v1 - # TODO: Use julia-actions/julia-runtest when test_args are supported - # Custom calls of Pkg.test tend to miss features such as e.g. adjustments for CompatHelper PRs - # Ref https://github.com/julia-actions/julia-runtest/pull/73 - - name: Call Pkg.test - run: julia --color=yes --inline=yes --depwarn=yes --check-bounds=yes --threads=${{ matrix.runner.num_threads }} --project=@. -e 'import Pkg; Pkg.test(; coverage=parse(Bool, ENV["COVERAGE"]), test_args=ARGS)' -- ${{ matrix.test.args }} + - uses: julia-actions/julia-runtest@v1 + with: + test_args: ${{ matrix.test.args }} + env: + JULIA_NUM_THREADS: ${{ matrix.runner.num_threads }} - uses: julia-actions/julia-processcoverage@v1