Skip to content

Add pypi github actions workflow #1

Add pypi github actions workflow

Add pypi github actions workflow #1

Workflow file for this run

name: pypi
on:
push:
tags:
- v*
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- env: py38
py: '3.8'
- env: py39
py: '3.9'
- env: py310
py: '3.10'
- env: py311
py: '3.11'
- env: pypy3.9
py: 'pypy-3.9'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- run: pip install tox
- run: tox -e ${{ matrix.env }}
pypi:
needs: test
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: python setup.py sdist
- uses: pypa/gh-action-pypi-publish