Skip to content

fix shell script

fix shell script #100

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: python
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
version: "0.5.2"
- name: Install project and dependencies
run: uv sync --python ${{ matrix.python-version }}
- name: Run tests
run: uv run pytest tests
- name: Lint with ruff
run: uv run ruff check src/*