|
51 | 51 | with:
|
52 | 52 | version: ${{ matrix.version }}
|
53 | 53 | - uses: julia-actions/julia-runtest@v1
|
| 54 | + - run: find . -type f -name '*.cov' |
| 55 | + # - run: find . -type f -name '*.c ov' -exec cat {} \; |
| 56 | + - uses: julia-actions/julia-processcoverage@v1 |
| 57 | + - uses: codecov/codecov-action@v5 |
| 58 | + with: |
| 59 | + files: lcov.info |
| 60 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 61 | + # If this PR is from a fork, then do NOT fail CI if the Codecov upload errors. |
| 62 | + # If this PR is NOT from a fork, then DO fail CI if the Codecov upload errors. |
| 63 | + # If this is not a PR, then DO fail CI if the Codecov upload errors. |
| 64 | + fail_ci_if_error: ${{ github.event_name != 'pull_request' || github.repository == github.event.pull_request.head.repo.full_name }} |
54 | 65 | test-slurm:
|
55 | 66 | runs-on: ubuntu-latest
|
56 | 67 | timeout-minutes: 20
|
@@ -95,6 +106,20 @@ jobs:
|
95 | 106 | - name: Run tests without a Slurm allocation
|
96 | 107 | run: docker exec -t slurmctld julia --project=ClusterManagers -e 'import Pkg; Pkg.test(; test_args=["slurm"])'
|
97 | 108 | - name: Run tests inside salloc
|
98 |
| - run: docker exec -t slurmctld salloc -t 00:10:00 -n 2 julia --project=ClusterManagers -e 'import Pkg; Pkg.test(test_args=["slurm"])' |
| 109 | + run: docker exec -t slurmctld salloc -t 00:10:00 -n 2 julia --project=ClusterManagers -e 'import Pkg; Pkg.test(; test_args=["slurm"], coverage=true)' |
99 | 110 | - name: Run tests inside sbatch
|
100 | 111 | run: docker exec -t slurmctld ClusterManagers/ci/run_my_sbatch.sh
|
| 112 | + - run: find . -type f -name '*.cov' |
| 113 | + - name: Copy .cov files out of the Docker container |
| 114 | + run: docker exec slurmctld /bin/bash -c 'cd /home/docker/ClusterManagers && tar -cf - src/*.cov' | tar -xvf - |
| 115 | + - run: find . -type f -name '*.cov' |
| 116 | + # - run: find . -type f -name '*.cov' -exec cat {} \; |
| 117 | + - uses: julia-actions/julia-processcoverage@v1 |
| 118 | + - uses: codecov/codecov-action@v5 |
| 119 | + with: |
| 120 | + files: lcov.info |
| 121 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 122 | + # If this PR is from a fork, then do NOT fail CI if the Codecov upload errors. |
| 123 | + # If this PR is NOT from a fork, then DO fail CI if the Codecov upload errors. |
| 124 | + # If this is not a PR, then DO fail CI if the Codecov upload errors. |
| 125 | + fail_ci_if_error: ${{ github.event_name != 'pull_request' || github.repository == github.event.pull_request.head.repo.full_name }} |
0 commit comments