mirror of
https://github.com/Cian-H/read_aconity_layers.git
synced 2026-06-22 17:45:45 +01:00
ada32e43a9
* WIP: Fixed non-deterministic test error * Updated tooling to use uv/ty instead of poetry/mypy * Updated python/rust/maturin versions * Added mac os to testing pipelines * Properly enforced fixed with csv reading * Minor tweaks for maintainability * Minor version bump * track npz files with git-lfs * fix: add macos dynamic lookup linker flags for pyo3
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
name: Python
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build-python:
|
|
|
|
name: Build python package for ${{ matrix.os }} with Python ${{ matrix.python-version }} via uv
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 30
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
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: Install python dependencies
|
|
run: |
|
|
uv sync --group dev
|
|
- name: Build rust package
|
|
run: |
|
|
uv run maturin develop
|
|
- name: Test with pytest
|
|
env:
|
|
PYTEST_ADDOPTS: "--cov read_aconity_layers --cov-report=lcov"
|
|
run: |
|
|
uv run pytest
|
|
|
|
- name: Upload coverage to Coveralls
|
|
uses: coverallsapp/github-action@master
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
path-to-lcov: coverage.lcov
|