Skip to content

Add GitHub Actions workflow for publishing Python packages to PyPI #39

Add GitHub Actions workflow for publishing Python packages to PyPI

Add GitHub Actions workflow for publishing Python packages to PyPI #39

Workflow file for this run

name: Tests
on:
push:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
# see details (matrix, python-version, python-version-file, etc.)
# https://github.com/actions/setup-python
- name: Install uv
uses: astral-sh/setup-uv@v4
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('uv.lock') }}
- name: Install dependencies
run: uv sync
- name: Run tests
run: uv run pytest -v