Skip to content

Replace setuptools with Hatch #13

Replace setuptools with Hatch

Replace setuptools with Hatch #13

Workflow file for this run

name: Python Package Workflow
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip # This path is specific to Ubuntu
# Check for a cache hit for the corresponding dev requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Generate example project
run: |
cookiecutter --no-input . package_name=example
- name: Check example project
run: |
cd example
make venv
make help
make style
make check-style
make check-static-analysis
make test
make test-verbose
make coverage
make check-docs
make docs
make dist
make dist-test