Skip to content

Add 'make release' command #70

Add 'make release' command

Add 'make release' command #70

Workflow file for this run

# .github/workflows/ci.yml
name: CI
on: [push]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.12', '3.13', '3.14']
task: [check, test, format]
name: ${{ matrix.task }} (py ${{ matrix.python-version }})
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache uv
uses: actions/cache@v4
with:
path: |
~/.cache/uv
.venv
key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock', '**/pyproject.toml') }}
restore-keys: ${{ runner.os }}-uv-
- name: Select command
run: |
case "${{ matrix.task }}" in
check) echo "CMD=make check" >> $GITHUB_ENV ;;
test) echo "CMD=make test" >> $GITHUB_ENV ;;
format) echo "CMD=make format FLAGS=--check" >> $GITHUB_ENV ;;
esac
- name: Run
run: $CMD