Skip to content

Merge pull request #2 from maykinmedia/release/0.2.0 #28

Merge pull request #2 from maykinmedia/release/0.2.0

Merge pull request #2 from maykinmedia/release/0.2.0 #28

Workflow file for this run

name: Run CI
on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.12", "3.13", "3.14"]
name: Run the test suite (Python ${{ matrix.python }})
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install dependencies
run: pip install tox tox-gh-actions
- name: Run tests
run: tox
- name: Publish coverage report
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
publish:
name: Publish package to PyPI
runs-on: ubuntu-latest
needs: [tests]
environment: release
permissions:
id-token: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build sdist and wheel
run: |
pip install build --upgrade
python -m build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1