Merge pull request #59 from rfverbruggen/all-contributors/add-brg468 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-18.04 | |
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 distribution to Test PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.test_pypi_password }} | |
repository_url: https://test.pypi.org/legacy/ |