-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (32 loc) · 1 KB
/
publish_test.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
name: Publish Python distributions to Test PyPI
on:
push:
branches:
- dev
jobs:
build-n-publish:
name: Build and publish Python distributions to Test PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://test.pypi.org/project/RachioPy
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@master
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt
- name: Run unit tests
run: python -m unittest discover -v tests
- name: Build distribution
run: python setup.py sdist bdist_wheel
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/