Bump pre-commit from 3.6.2 to 3.7.0 (#338) #919
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: "Build package" | |
on: | |
push: | |
branches: ["master", "main"] | |
pull_request: | |
branches: ["master", "main"] | |
jobs: | |
build: | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
matrix: | |
os: ["macos-latest", "ubuntu-latest", "windows-latest"] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
fail-fast: false | |
steps: | |
- name: "⤵️ Check out code from GitHub" | |
uses: "actions/checkout@v4" | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: "🐍 Set up Python ${{ matrix.python-version }}" | |
uses: "actions/setup-python@v5" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: "⚙️ Install Poetry" | |
uses: "abatilo/actions-poetry@v3.0.0" | |
with: | |
poetry-version: 1.5.1 | |
- name: "⚙️ Install dependencies" | |
run: | | |
poetry install --without dev | |
poetry self add "poetry-dynamic-versioning[plugin]" | |
- name: "🚀 Test package building" | |
run: "poetry build" |