Skip to content

Move to 'pyproject.toml' for project metadata #25

Move to 'pyproject.toml' for project metadata

Move to 'pyproject.toml' for project metadata #25

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch: # For manual triggering
schedule: # Runs on default branch only
- cron: '12 12 * * 0'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "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: make env
- name: Test with pytest
run: make test
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}