Skip to content

Prefer uv and pyproject.toml together with namespace update to `sim… #3

Prefer uv and pyproject.toml together with namespace update to `sim…

Prefer uv and pyproject.toml together with namespace update to `sim… #3

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Lint with flake8
run: |
uv run flake8 --statistics simplyprint_duet3d
- name: Test with pytest
run: |
uv run pytest --cov-config .coveragerc --cov simplyprint_duet3d tests/ -vv
- name: Check style with yapf
run: |
uv run yapf --style .style.yapf -r --diff simplyprint_duet3d