-
Notifications
You must be signed in to change notification settings - Fork 241
44 lines (42 loc) · 1.12 KB
/
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: paasta-pypi
on:
push:
tags:
- v*
jobs:
tox:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
toxenv:
- py38-linux,docs,mypy,tests
- general_itests
env:
DOCKER_REGISTRY: ""
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- run: python -m pip install --upgrade pip
- run: pip install coveralls tox==3.2 tox-pip-extensions==1.3.0 ephemeral-port-reserve
- run: tox -e ${{ matrix.toxenv }}
pypi:
# lets run tests before we push anything to pypi, much like we do internally
needs: tox
runs-on: ubuntu-20.04
env:
DOCKER_REGISTRY: ""
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
# this will create a .tar.gz with all the code (i.e., an sdist)
- run: python setup.py sdist
# and finally, upload the above sdist to public PyPI
- uses: pypa/[email protected]
with:
password: ${{ secrets.pypi_password }}