forked from fireteam/virtualenv-tools
-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (42 loc) · 871 Bytes
/
pypi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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]