Updated tooling to use uv/ty instead of poetry/mypy

This commit is contained in:
2026-06-19 13:56:22 +01:00
parent a8979da292
commit f626f64750
14 changed files with 1720 additions and 2011 deletions
+8 -12
View File
@@ -9,7 +9,7 @@ on:
jobs:
build-python:
name: Build python package for ${{ matrix.os }} with Python ${{ matrix.python-version }} via Poetry ${{ matrix.poetry-version }}
name: Build python package for ${{ matrix.os }} with Python ${{ matrix.python-version }} via uv
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
@@ -17,7 +17,6 @@ jobs:
matrix:
python-version: ["3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest]
poetry-version: ["latest"]
steps:
- uses: actions/checkout@v5
@@ -25,28 +24,25 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install Act dependencies
if: ${{ env.ACT }}
run: |
apt-get update && apt-get install sudo -y cargo
- name: Run poetry image
uses: abatilo/actions-poetry@v4
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Ensure lockfile is updated
run: |
poetry lock
- name: Install python dependencies
run: |
poetry install
uv sync --group dev
- name: Build rust package
run: |
poetry run maturin develop
uv run maturin develop
- name: Test with pytest
env:
PYTEST_ADDOPTS: "--cov read_aconity_layers --cov-report=lcov"
run: |
poetry run pytest
uv run pytest
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@master