Skip to content

Update README.md

Update README.md #292

name: Test Publish to PYPI
on:
push:
branches:
- main
jobs:
build-n-publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
- run: pip install poetry
- name: Set poetry version to dev
run: |
build_version="$(poetry version -s).dev$(date +%s)"
poetry version $build_version
- run: poetry build
- run: pip install 'pytest==7.1'
- run: pip install dist/*gz --force-reinstall
- run: pytest --nbmake tests/resources/mock.ipynb
- run: pip install dist/*whl --force-reinstall
- run: pytest --nbmake tests/resources/mock.ipynb
- run: pip install twine==4.0.1
- run: twine upload -r testpypi dist/* -u __token__ -p ${{ secrets.TEST_PYPI_API_TOKEN }}