Debian Codegraph @

.github/workflows/publish-to-pypi.yml

raw symbols SCIP
1 name: Build
2
3 on: push
4
5 jobs:
6 build-n-publish:
7 name: Build and publish Python 🐍 distributions 📦 to PyPI
8 runs-on: ubuntu-latest
9 steps:
10 - uses: actions/checkout@master
11 - name: Set up Python 3.9
12 uses: actions/setup-python@v1
13 with:
14 python-version: 3.9
15 - name: Install pypa/build
16 run: >-
17 python -m
18 pip install
19 build
20 --user
21 - name: Install requirements
22 run: >-
23 python -m pip install -r requirements.txt
24 - name: Build a binary wheel and a source tarball
25 run: >-
26 python -m
27 build
28 --sdist
29 --wheel
30 --outdir dist/
31 - name: Coveralls
32 run: >-
33 export pip install coveralls &&
34 coverage run --source=appdata -m pytest tests/ &&
35 coveralls
36 env:
37 COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
38 - name: Publish distribution 📦 to PyPI
39 if: startsWith(github.ref, 'refs/tags')
40 uses: pypa/gh-action-pypi-publish@master
41 with:
42 user: __token__
43 password: ${{ secrets.PYPI_API_TOKEN }}