Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/machines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
- ssh_rsync
steps:
- uses: actions/checkout@v6
- name: Mark workspace as safe for git (setuptools_scm)
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- run: ./ci/${{ matrix.machine }}.sh
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion ci/pbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ docker exec pbs_master /bin/bash -c "chmod -R 777 /shared_space"
docker exec pbs_master /bin/bash -c "chown -R pbsuser:pbsuser /home/pbsuser"

docker exec pbs_master /bin/bash -c "yum install -y procps"
docker exec pbs_master /bin/bash -c "cd /dpdispatcher && pip install uv && uv pip install --system .[test] coverage && chown -R pbsuser ."
docker exec pbs_master /bin/bash -c "git config --global --add safe.directory /dpdispatcher && cd /dpdispatcher && pip install uv && uv pip install --system .[test] coverage && chown -R pbsuser ."
docker exec -u pbsuser pbs_master /bin/bash -c "cd /dpdispatcher && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
docker exec -u pbsuser --env-file <(env | grep GITHUB) pbs_master /bin/bash -c "cd /dpdispatcher && curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov && ./codecov"
4 changes: 2 additions & 2 deletions ci/slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ docker compose pull
cd -

docker exec slurmctld /bin/bash -c "yum install -y procps"
docker exec slurmctld /bin/bash -c "cd dpdispatcher && pip install uv && uv pip install --system .[test] coverage && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
docker exec --env-file <(env | grep -e GITHUB -e CODECOV) slurmctld /bin/bash -c "cd dpdispatcher && curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov && ./codecov"
docker exec slurmctld /bin/bash -c "git config --global --add safe.directory /dpdispatcher && cd /dpdispatcher && pip install uv && uv pip install --system .[test] coverage && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
docker exec --env-file <(env | grep -e GITHUB -e CODECOV) slurmctld /bin/bash -c "cd /dpdispatcher && curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov && ./codecov"
2 changes: 1 addition & 1 deletion ci/ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ docker compose pull
./start-ssh.sh
cd -

docker exec test /bin/bash -c "cd /dpdispatcher && pip install uv && uv pip install --system .[test] coverage && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
docker exec test /bin/bash -c "git config --global --add safe.directory /dpdispatcher && cd /dpdispatcher && pip install uv && uv pip install --system .[test] coverage && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
docker exec --env-file <(env | grep -e GITHUB -e CODECOV) test /bin/bash -c "cd /dpdispatcher && curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov && ./codecov"
2 changes: 1 addition & 1 deletion ci/ssh_rsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ cd -
docker exec server /bin/bash -c "apt-get -y update && apt-get -y install rsync"
docker exec test /bin/bash -c "apt-get -y update && apt-get -y install rsync"

docker exec test /bin/bash -c "cd /dpdispatcher && pip install uv && uv pip install --system .[test] coverage && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
docker exec test /bin/bash -c "git config --global --add safe.directory /dpdispatcher && cd /dpdispatcher && pip install uv && uv pip install --system .[test] coverage && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
docker exec --env-file <(env | grep -e GITHUB -e CODECOV) test /bin/bash -c "cd /dpdispatcher && curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov && ./codecov"
Loading