Merge pull request #77 from jwg4/additional_test #54
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 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 }} |