Merge pull request #28 from jwg4/exact_cover_1.0 #27
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: Deploy sdist to pypi | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'nodeploy')" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install poetry | |
run: pip install poetry | |
- name: Install requirements | |
run: poetry install | |
- name: Build package | |
run: poetry build -f sdist | |
- name: Test package | |
run: poetry run pytest | |
- name: publish to pypi | |
run: poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} |