diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8c925c..d179049 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,4 +44,13 @@ jobs: docker exec -t slurmctld srun -n 4 hostname - name: Test SlurmClusterManager run: | - docker exec -t slurmctld julia -e 'import Pkg; Pkg.activate("SlurmClusterManager"); Pkg.test()' + docker exec -t slurmctld julia -e 'import Pkg; Pkg.activate("SlurmClusterManager"); Pkg.test(; coverage=true)' + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v5 + with: + files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + # If this PR is from a fork, then do NOT fail CI if the Codecov upload errors. + # If this PR is NOT from a fork, then DO fail CI if the Codecov upload errors. + # If this is not a PR, then DO fail CI if the Codecov upload errors. + fail_ci_if_error: ${{ github.event_name != 'pull_request' || github.repository == github.event.pull_request.head.repo.full_name }}