Skip to content

Add Setup

Add Setup #3

name: Publish package
on:
pull_request:
paths:
- .github/workflows/publish-test-pypi.yaml
- setup.cfg
- setup.py
jobs:
test-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -r requirements.txt
- name: Build
run: |
make build
- name: Publish TestPypi
run: |
twine upload --repository pypitest dist/* -u __token__ -p $TOKEN --verbose
env:
TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}