Skip to content

Python structure setup with new repo name #36

Python structure setup with new repo name

Python structure setup with new repo name #36

Workflow file for this run

name: Build and pytest
on:
push:
branches: [ "main" ]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [ "main" ]
jobs:
build:
# This disables all types for draft PR
if: github.event.pull_request.draft == false
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-groups
- name: Build the package
run: uv build
- name: Test with pytest
run: uv run pytest