Skip to content

Commit

Permalink
Reapply the pip -> uv replacement (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg authored Sep 3, 2024
1 parent 8c7a26e commit 73bb592
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/actions/code-quality/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
8 changes: 6 additions & 2 deletions .github/actions/coverage/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions .github/actions/pytest-cpu/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -102,4 +103,5 @@ runs:
- uses: actions/upload-artifact@v3
with:
name: coverage-${{ github.sha }}-${{ inputs.name }}
include-hidden-files: true
path: .coverage
3 changes: 2 additions & 1 deletion .github/actions/pytest-gpu/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions .github/actions/smoketest/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 3 additions & 1 deletion .github/mcli/mcli_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
'''
Expand Down

0 comments on commit 73bb592

Please sign in to comment.