ci(deps): bump uv to 0.2.24 (#3964) #3444
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
pull_request: | |
name: Test Python | |
jobs: | |
testpython: | |
name: Test Python | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
include: | |
- python: 3.7 | |
tf: 1.14 | |
- python: 3.8 | |
tf: | |
- python: "3.12" | |
tf: | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- uses: mpi4py/setup-mpi@v1 | |
if: ${{ matrix.tf == '' }} | |
with: | |
mpi: openmpi | |
- run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- run: source/install/uv_with_retry.sh pip install --system -e .[cpu,test] | |
env: | |
# Please note that uv has some issues with finding | |
# existing TensorFlow package. Currently, it uses | |
# TensorFlow in the build dependency, but if it | |
# changes, setting `TENSORFLOW_ROOT`. | |
TENSORFLOW_VERSION: ${{ matrix.tf }} | |
DP_BUILD_TESTING: 1 | |
- run: | | |
source/install/uv_with_retry.sh pip install --system mpi4py | |
source/install/uv_with_retry.sh pip install --system --no-build-isolation horovod | |
if: ${{ matrix.tf == '' }} | |
env: | |
HOROVOD_WITH_TENSORFLOW: 1 | |
HOROVOD_WITHOUT_GLOO: 1 | |
- run: dp --version | |
- run: pytest --cov=deepmd --cov=deepmd_utils source/tests --durations=0 | |
- uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
pass: | |
name: Pass testing Python | |
needs: [testpython] | |
runs-on: ubuntu-latest | |
if: always() | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |