Skip to content

Merge pull request #28 from jwg4/exact_cover_1.0 #27

Merge pull request #28 from jwg4/exact_cover_1.0

Merge pull request #28 from jwg4/exact_cover_1.0 #27

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 }}