Skip to content

refactor: use pyproject.toml for builds #56

refactor: use pyproject.toml for builds

refactor: use pyproject.toml for builds #56

# 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: Python on pull request
on:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
env:
OS: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Set up pixi environment
uses: prefix-dev/setup-pixi@v0.9.1
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
pixi run lint
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
pixi run lint "--exit-zero --max-complexity=10 --max-line-length=127"