1616 timeout-minutes : 10
1717 needs :
1818 - unit-tests
19- - test-slurm
2019 # Important: the next line MUST be `if: always()`.
2120 # Do not change that line.
2221 # That line is necessary to make sure that this job runs even if tests fail.
@@ -25,13 +24,11 @@ jobs:
2524 steps :
2625 - run : |
2726 echo unit-tests: ${{ needs.unit-tests.result }}
28- echo test-slurm: ${{ needs.test-slurm.result }}
2927 - run : exit 1
3028 # The last line must NOT end with ||
3129 # All other lines MUST end with ||
3230 if : |
33- (needs.unit-tests.result != 'success') ||
34- (needs.test-slurm.result != 'success')
31+ (needs.unit-tests.result != 'success')
3532 unit-tests :
3633 runs-on : ubuntu-latest
3734 timeout-minutes : 20
6360 # If this is not a PR, then DO fail CI if the Codecov upload errors.
6461 fail_ci_if_error : ${{ github.event_name != 'pull_request' || github.repository == github.event.pull_request.head.repo.full_name }}
6562 test-slurm :
63+ if : false
6664 runs-on : ubuntu-latest
6765 timeout-minutes : 20
6866 strategy :
@@ -100,18 +98,18 @@ jobs:
10098 run : |
10199 docker exec -t slurmctld pwd
102100 docker exec -t slurmctld ls -la
103- docker exec -t slurmctld ls -la ClusterManagers
101+ docker exec -t slurmctld ls -la HTCondorClusterManager
104102 - name : Instantiate package
105- run : docker exec -t slurmctld julia --project=ClusterManagers -e 'import Pkg; @show Base.active_project(); Pkg.instantiate(); Pkg.status()'
103+ run : docker exec -t slurmctld julia --project=HTCondorClusterManager -e 'import Pkg; @show Base.active_project(); Pkg.instantiate(); Pkg.status()'
106104 - name : Run tests without a Slurm allocation
107- run : docker exec -t slurmctld julia --project=ClusterManagers -e 'import Pkg; Pkg.test(; test_args=["slurm"])'
105+ run : docker exec -t slurmctld julia --project=HTCondorClusterManager -e 'import Pkg; Pkg.test(; test_args=["slurm"])'
108106 - name : Run tests inside salloc
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)'
107+ run : docker exec -t slurmctld salloc -t 00:10:00 -n 2 julia --project=HTCondorClusterManager -e 'import Pkg; Pkg.test(; test_args=["slurm"], coverage=true)'
110108 - name : Run tests inside sbatch
111- run : docker exec -t slurmctld ClusterManagers /ci/run_my_sbatch.sh
109+ run : docker exec -t slurmctld HTCondorClusterManager /ci/run_my_sbatch.sh
112110 - run : find . -type f -name '*.cov'
113111 - 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 -
112+ run : docker exec slurmctld /bin/bash -c 'cd /home/docker/HTCondorClusterManager && tar -cf - src/*.cov' | tar -xvf -
115113 - run : find . -type f -name '*.cov'
116114 # - run: find . -type f -name '*.cov' -exec cat {} \;
117115 - uses : julia-actions/julia-processcoverage@v1
0 commit comments