Skip to content

Merge pull request #33 from Yelp/u/dpopes/pypi-github-action #2

Merge pull request #33 from Yelp/u/dpopes/pypi-github-action

Merge pull request #33 from Yelp/u/dpopes/pypi-github-action #2

Workflow file for this run

name: pypi
on:
push:
tags:
- v*
branches:
- main
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/[email protected]