Skip to content

Add ruff formatting, make ruff happy :) #453

Add ruff formatting, make ruff happy :)

Add ruff formatting, make ruff happy :) #453

Workflow file for this run

name: build
on:
push:
branches:
- main
tags:
- "*-[0-9]+.*"
pull_request:
branches:
- main
jobs:
build:
name: ${{matrix.os}} - ${{matrix.python-version}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: ${{matrix.python-version}}
- name: Install uv
run: |
python -m pip install --upgrade pip
python -m pip install uv
- name: Test PyImageJ
shell: bash
run: |
bin/test.sh
ensure-clean-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
- name: Install uv
run: |
python -m pip install --upgrade pip
python -m pip install uv
- name: Lint code
run: |
uv run ruff check
uv run ruff format --check
- name: Validate pyproject.toml
run: |
uv run validate-pyproject pyproject.toml
- name: Analyze code coverage
run: |
bin/test.sh tests --cov-report=xml --cov=.
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2