Skip to content

Bump pytest from 6.2.5 to 7.4.4 #114

Bump pytest from 6.2.5 to 7.4.4

Bump pytest from 6.2.5 to 7.4.4 #114

name: Publish to PyPI
# Only trigger, when the build workflow succeeded
on: [push]
# on:
# workflow_run:
# workflows: ["CI build"]
# types:
# - completed
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
- name: github-ref
run: echo "$GITHUB_REF"
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}