Skip to content

Update GitHub Actions for Setup Python with Rye #63

Update GitHub Actions for Setup Python with Rye

Update GitHub Actions for Setup Python with Rye #63

Workflow file for this run

name: Ruff
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }} with Rye
uses: ./.github/actions/setup-python-with-rye
with:
python-version: ${{ matrix.python-version }}
- name: Lint
run: rye run ruff check --output-format=github .
format:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }} with Rye
uses: ./.github/actions/setup-python-with-rye
with:
python-version: ${{ matrix.python-version }}
- name: Format
run: rye run ruff format . --check --diff