Skip to content

Merge pull request #29 from iancovert/pre-commit-ci-update-config #18

Merge pull request #29 from iancovert/pre-commit-ci-update-config

Merge pull request #29 from iancovert/pre-commit-ci-update-config #18

Workflow file for this run

name: Python build
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# Cancel only PR intermediate builds
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
# https://devguide.python.org/versions/
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
# Additionally test on latest windows/mac
- os: windows-latest
python-version: "3.12"
- os: macos-latest
python-version: "3.12"
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install build
- name: Build package
run: python -m build