Skip to content

deps(deps-dev): update mypy requirement from >=1.0 to >=2.1.0 #9

deps(deps-dev): update mypy requirement from >=1.0 to >=2.1.0

deps(deps-dev): update mypy requirement from >=1.0 to >=2.1.0 #9

Workflow file for this run

name: Build and Package
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build wheel setuptools twine
- name: Build package
run: |
python -m build
- name: Check package
run: |
twine check dist/*
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist-packages
path: dist/
publish:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist-packages
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}