Skip to content

Merge pull request #77 from jwg4/additional_test #54

Merge pull request #77 from jwg4/additional_test

Merge pull request #77 from jwg4/additional_test #54

name: Deploy wheels to pypi
on:
push:
branches:
- main
jobs:
publish:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-20.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, 'nodeploy')"
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pip install poetry
- name: Install requirements
run: poetry install --with wheel_builder
- name: Build package
run: poetry build -f wheel
- name: Test package
run: poetry run test
- name: publish to pypi
run: poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}