v3.0.0 #22
Workflow file for this run
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: build | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10"] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run image | |
uses: abatilo/actions-poetry@v2.0.0 | |
with: | |
poetry-version: "1.3" | |
- name: Install deps | |
run: poetry install | |
- name: Run Mypy | |
run: make mypy | |
- name: Run tests | |
run: make test | |
publish: | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
needs: ci | |
env: | |
PYPI_API_KEY: ${{ secrets.PYPI_API_KEY }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Run image | |
uses: abatilo/actions-poetry@v2.0.0 | |
with: | |
poetry-version: "1.3" | |
- name: Install deps | |
run: poetry install | |
- name: Build | |
run: poetry build | |
- name: Publish | |
run: poetry publish -u __token__ -p $PYPI_API_KEY |