diff --git a/.github/actions/code-quality/action.yaml b/.github/actions/code-quality/action.yaml index f4d36ce..cf7082b 100644 --- a/.github/actions/code-quality/action.yaml +++ b/.github/actions/code-quality/action.yaml @@ -17,8 +17,9 @@ runs: shell: bash run: | set -ex - python -m pip install --upgrade pip wheel - python -m pip install --upgrade .${{ inputs.pip_deps }} + pip install uv + uv pip install --upgrade --system pip wheel + uv pip install --system .${{ inputs.pip_deps }} - name: Run checks shell: bash run: | diff --git a/.github/actions/coverage/action.yaml b/.github/actions/coverage/action.yaml index 38e76aa..ba9a1b7 100644 --- a/.github/actions/coverage/action.yaml +++ b/.github/actions/coverage/action.yaml @@ -6,12 +6,16 @@ inputs: runs: using: composite steps: + - uses: actions/setup-python@v4 + with: + python-version: "3.11" - name: Setup shell: bash run: | set -ex - python -m pip install --upgrade pip wheel - pip install coverage[toml]==6.5.0 + pip install uv + uv pip install --upgrade --system pip wheel + uv pip install --system coverage[toml]==6.5.0 - name: Download artifacts uses: actions/download-artifact@v3 with: diff --git a/.github/actions/pytest-cpu/action.yaml b/.github/actions/pytest-cpu/action.yaml index 92842a1..c55cdd9 100644 --- a/.github/actions/pytest-cpu/action.yaml +++ b/.github/actions/pytest-cpu/action.yaml @@ -71,8 +71,9 @@ runs: set -ex export PATH=/composer-python:$PATH export COMPOSER_PACKAGE_NAME='${{ inputs.composer_package_name }}' - python -m pip install --upgrade pip wheel - python -m pip install --upgrade .${{ inputs.pip_deps }} + pip install uv + uv pip install --system --upgrade pip wheel + uv pip install --system .${{ inputs.pip_deps }} - name: Run Tests id: tests shell: bash @@ -102,4 +103,5 @@ runs: - uses: actions/upload-artifact@v3 with: name: coverage-${{ github.sha }}-${{ inputs.name }} + include-hidden-files: true path: .coverage diff --git a/.github/actions/pytest-gpu/action.yaml b/.github/actions/pytest-gpu/action.yaml index fd276c2..af23b19 100644 --- a/.github/actions/pytest-gpu/action.yaml +++ b/.github/actions/pytest-gpu/action.yaml @@ -85,7 +85,8 @@ runs: shell: bash run: | set -ex - python -m pip install mosaicml-cli + pip install uv + uv pip install --system mosaicml-cli mcli version - name: Submit Run id: tests diff --git a/.github/actions/smoketest/action.yaml b/.github/actions/smoketest/action.yaml index 43b2727..9377d22 100644 --- a/.github/actions/smoketest/action.yaml +++ b/.github/actions/smoketest/action.yaml @@ -13,9 +13,10 @@ runs: shell: bash run: | set -ex - python -m pip install --upgrade pip wheel - python -m pip install --upgrade . - python -m pip install pytest==7.2.1 pytest_codeblocks==0.16.1 + pip install uv + uv pip install --upgrade --system pip wheel + uv pip install --system . + uv pip install --system pytest==7.2.1 pytest_codeblocks==0.16.1 - name: Run checks shell: bash run: | diff --git a/.github/mcli/mcli_pytest.py b/.github/mcli/mcli_pytest.py index d8b11cd..73f93e4 100644 --- a/.github/mcli/mcli_pytest.py +++ b/.github/mcli/mcli_pytest.py @@ -64,7 +64,9 @@ export COMPOSER_PACKAGE_NAME='{args.pip_package_name}' - pip install --upgrade --user .{args.pip_deps} + pip install uv + + uv pip install --system --no-build-isolation .{args.pip_deps} export COMMON_ARGS="-v --durations=20 -m '{args.pytest_markers}' {clear_tmp_path_flag}" '''