File tree Expand file tree Collapse file tree 7 files changed +17
-11
lines changed
Expand file tree Collapse file tree 7 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 1111 - uses : actions/setup-python@v5
1212 with :
1313 python-version : ' 3.11'
14- - run : pip install -e .[cloudserver,gui]
14+ - run : pip install uv
15+ - run : uv pip install --system -e .[cloudserver,gui]
1516 - uses : jakebailey/pyright-action@v2
1617 with :
1718 version : 1.1.308
Original file line number Diff line number Diff line change 2020 with :
2121 python-version : ' 3.12'
2222 cache : ' pip'
23- - run : pip install .[bohrium] coverage
23+ - run : pip install uv
24+ - run : uv pip install --system .[bohrium] coverage
2425 - name : Test
2526 run : coverage run --source=./dpdispatcher -m unittest -v tests/test_run_submission_bohrium.py && coverage report
2627 env :
Original file line number Diff line number Diff line change @@ -31,13 +31,17 @@ jobs:
3131 uses : actions/setup-python@v5
3232 with :
3333 python-version : ${{ matrix.python-version }}
34- - run : pip install .[test] coverage
34+ - run : curl -LsSf https://astral.sh/uv/install.sh | sh
35+ if : matrix.platform != 'windows-latest'
36+ - run : powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
37+ if : matrix.platform == 'windows-latest'
38+ - run : uv pip install --system .[test] coverage
3539 - name : Test
3640 run : |
37- coverage run -p --source=./dpdispatcher -m unittest -v
38- coverage run -p --source=./dpdispatcher -m dpdispatcher -h
39- coverage combine
40- coverage report
41+ python -m coverage run -p --source=./dpdispatcher -m unittest -v
42+ python -m coverage run -p --source=./dpdispatcher -m dpdispatcher -h
43+ python -m coverage combine
44+ python -m coverage report
4145 - uses : codecov/codecov-action@v4
4246 env :
4347 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 99docker exec pbs_master /bin/bash -c " chmod -R 777 /shared_space"
1010docker exec pbs_master /bin/bash -c " chown -R pbsuser:pbsuser /home/pbsuser"
1111
12- docker exec pbs_master /bin/bash -c " cd /dpdispatcher && pip install .[test] coverage && chown -R pbsuser ."
12+ docker exec pbs_master /bin/bash -c " cd /dpdispatcher && pip install uv && uv pip install --system .[test] coverage && chown -R pbsuser ."
1313docker exec -u pbsuser pbs_master /bin/bash -c " cd /dpdispatcher && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
1414docker 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"
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ docker-compose pull
66./start-slurm.sh
77cd -
88
9- docker exec slurmctld /bin/bash -c " cd dpdispatcher && pip install .[test] coverage && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
9+ 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"
1010docker 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"
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ docker-compose pull
66./start-ssh.sh
77cd -
88
9- docker exec test /bin/bash -c " cd /dpdispatcher && pip install .[test] coverage && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
9+ 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"
1010docker 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"
Original file line number Diff line number Diff line change 1010docker exec server /bin/bash -c " apt-get -y update && apt-get -y install rsync"
1111docker exec test /bin/bash -c " apt-get -y update && apt-get -y install rsync"
1212
13- docker exec test /bin/bash -c " cd /dpdispatcher && pip install .[test] coverage && coverage run --source=./dpdispatcher -m unittest -v && coverage report"
13+ 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"
1414docker 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"
You can’t perform that action at this time.
0 commit comments