This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
[pre-commit.ci] pre-commit autoupdate (#53) #97
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 ] | |
paths: | |
- 'src/**.py' | |
- 'tests/**.py' | |
- '.github/workflows/build.yml' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'src/**.py' | |
- 'tests/**.py' | |
- '.github/workflows/build.yml' | |
workflow_run: | |
workflows: | |
- 'pre-commit.ci' | |
- 'testing' | |
types: | |
- completed | |
jobs: | |
build: | |
strategy: | |
fail-fast: true | |
matrix: | |
operating-system: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ['3.7', '3.8', '3.9', '3.10'] | |
runs-on: ${{ matrix.operating-system }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Install poetry dependencies | |
run: poetry install --without dev | |
- name: Check dependencies | |
run: poetry check | |
- name: Build package | |
run: poetry build |