Skip to content

Move tests to version 3.7 and fixed some of them with temp files to m… #507

Move tests to version 3.7 and fixed some of them with temp files to m…

Move tests to version 3.7 and fixed some of them with temp files to m… #507

Workflow file for this run

name: Build and upload to PyPI
on: [push]
jobs:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.x'
- name: Install deps
run: |
pip install --upgrade pip
pip install setuptools twine wheel
- name: Build sdist
run: python setup.py sdist
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
upload_pypi:
needs: [build_sdist]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/[email protected]
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}