Skip to content

Commit 8536999

Browse files
authored
Run tests with code coverage enabled, and upload coverage to Codecov (attempt 2)
1 parent c7d03e7 commit 8536999

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,13 @@ jobs:
4444
docker exec -t slurmctld srun -n 4 hostname
4545
- name: Test SlurmClusterManager
4646
run: |
47-
docker exec -t slurmctld julia -e 'import Pkg; Pkg.activate("SlurmClusterManager"); Pkg.test()'
47+
docker exec -t slurmctld julia -e 'import Pkg; Pkg.activate("SlurmClusterManager"); Pkg.test(; coverage=true)'
48+
- uses: julia-actions/julia-processcoverage@v1
49+
- uses: codecov/codecov-action@v5
50+
with:
51+
files: lcov.info
52+
token: ${{ secrets.CODECOV_TOKEN }}
53+
# If this PR is from a fork, then do NOT fail CI if the Codecov upload errors.
54+
# If this PR is NOT from a fork, then DO fail CI if the Codecov upload errors.
55+
# If this is not a PR, then DO fail CI if the Codecov upload errors.
56+
fail_ci_if_error: ${{ github.event_name != 'pull_request' || github.repository == github.event.pull_request.head.repo.full_name }}

0 commit comments

Comments
 (0)