mirror of
https://github.com/astral-sh/uv
synced 2026-06-21 13:47:25 +00:00
66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
on:
|
|
workflow_call:
|
|
inputs:
|
|
sha:
|
|
required: true
|
|
type: string
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
ecosystem-test:
|
|
name: "${{ matrix.repo }}"
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- repo: "prefecthq/prefect"
|
|
ref: "7f25bbdf45fc81cca6dc23fb6a7377d436b70c83"
|
|
commands:
|
|
- "uv venv"
|
|
- "uv pip install -e '.[dev]'"
|
|
python: "3.9"
|
|
- repo: "pallets/flask"
|
|
ref: "b78b5a210bde49e7e04b62a2a4f453ca10e0048c"
|
|
commands:
|
|
- "uv venv"
|
|
- "uv pip install -r requirements/dev.txt"
|
|
python: "3.12"
|
|
- repo: "pydantic/pydantic-core"
|
|
ref: "d03bf4a01ca3b378cc8590bd481f307e82115bc6"
|
|
commands:
|
|
- "uv sync --group all"
|
|
- "uv lock --upgrade"
|
|
python: "3.12"
|
|
fail-fast: false
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
with:
|
|
repository: ${{ matrix.repo }}
|
|
ref: ${{ matrix.ref }}
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: ${{ matrix.python }}
|
|
|
|
- name: "Download binary"
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: uv-linux-libc-${{ inputs.sha }}
|
|
|
|
- name: "Prepare binary"
|
|
run: chmod +x ./uv
|
|
|
|
- name: "Test"
|
|
run: |
|
|
echo '${{ toJSON(matrix.commands) }}' | jq -r '.[]' | while read cmd; do
|
|
echo "+ $cmd" >&2
|
|
if [[ $cmd == uv* ]]; then
|
|
./$cmd
|
|
else
|
|
$cmd
|
|
fi
|
|
done
|