diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index d64b7c440..e0598fb22 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-runtest@v1 + with: + test_args: ${{ matrix.test.args }} + env: + JULIA_NUM_THREADS: ${{ matrix.runner.num_threads }} + - 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