Debian Codegraph @

.github/workflows/publish_test.yml

raw symbols SCIP
1 name: Publish Python distributions to Test PyPI
2
3 on:
4 push:
5 branches:
6 - dev
7
8 jobs:
9 build-n-publish:
10 name: Build and publish Python distributions to Test PyPI
11 runs-on: ubuntu-latest
12 environment:
13 name: pypi
14 url: https://test.pypi.org/project/RachioPy
15 permissions:
16 id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17 steps:
18 - uses: actions/checkout@master
19 - name: Set up Python 3.x
20 uses: actions/setup-python@v2
21 with:
22 python-version: 3.x
23 - name: Install dependencies
24 run: |
25 python -m pip install --upgrade pip setuptools wheel
26 python -m pip install -r requirements.txt
27
28 - name: Run unit tests
29 run: python -m unittest discover -v tests
30 - name: Build distribution
31 run: python setup.py sdist bdist_wheel
32 - name: Publish package distributions to TestPyPI
33 uses: pypa/gh-action-pypi-publish@release/v1
34 with:
35 repository-url: https://test.pypi.org/legacy/