Skip to content

Magnet holes

Magnet holes #312

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
name: Python linting
on:
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Mypy type check
run: |
python -m mypy freecad/gridfinity_workbench/
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Ruff lint
run: |
python -m ruff check
- name: Ruff format
if: success() || failure()
run: |
python -m ruff format --diff