Add Conda tests to system-install.yml (#2281)

Closes https://github.com/astral-sh/uv/issues/2280.
This commit is contained in:
Charlie Marsh
2024-03-07 08:44:19 -08:00
committed by GitHub
parent 54311c8664
commit b3ac0e30ec
3 changed files with 70 additions and 7 deletions

View File

@@ -231,3 +231,44 @@ jobs:
- name: "Validate global Python install"
run: python3.9 scripts/check_system_python.py --uv ./target/debug/uv
install-conda:
name: Install on Conda (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8", "3.11"]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: uv
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Conda list
shell: pwsh
run: conda list
- name: "Install Rust toolchain"
run: rustup show
- uses: Swatinem/rust-cache@v2
- name: "Build"
run: cargo build
- name: "Print Python path"
shell: bash -el {0}
run: echo $(which python)
- name: "Validate global Python install"
shell: bash -el {0}
run: python ./scripts/check_system_python.py --uv ./target/debug/uv