chore(workflows): update gh workflows to use uv
This commit is contained in:
@@ -11,14 +11,11 @@ jobs:
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
cache: pip
|
||||
- name: Install build tools
|
||||
run: pip install build
|
||||
- name: Build package
|
||||
run: python -m build
|
||||
run: uv build
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
@@ -11,11 +11,10 @@ jobs:
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
cache: pip
|
||||
- name: Install ruff
|
||||
run: pip install ruff
|
||||
- name: Install dependencies
|
||||
run: uv sync --dev
|
||||
- name: Run ruff
|
||||
run: ruff check .
|
||||
run: uv run ruff check .
|
||||
|
||||
@@ -14,14 +14,10 @@ jobs:
|
||||
python-version: ["3.11", "3.12"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: pip
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -e ".[dev]"
|
||||
python -m pip install pytest-timeout
|
||||
run: uv sync --dev
|
||||
- name: Run pytest
|
||||
run: pytest -v --timeout=30
|
||||
run: uv run pytest -v --timeout=30
|
||||
|
||||
@@ -42,6 +42,7 @@ dependencies = [
|
||||
dev = [
|
||||
"pytest>=8.0",
|
||||
"pytest-cov>=5.0",
|
||||
"pytest-timeout>=2.4",
|
||||
"ruff>=0.5",
|
||||
"build>=1.0",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user