Skip to content

Bump ruff from 0.6.5 to 0.6.7 #232

Bump ruff from 0.6.5 to 0.6.7

Bump ruff from 0.6.5 to 0.6.7 #232

Workflow file for this run

name: main
on:
push:
branches:
- "main"
tags:
- "*"
pull_request:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'poetry'
- run: poetry install
- name: Run ruff format
run: poetry run python -m ruff format --check .
- name: Run ruff
run: poetry run python -m ruff check .
- name: Run tests
run: poetry run python -m pytest .
release:
runs-on: ubuntu-latest
needs:
- build
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'poetry'
- run: poetry install
- name: Configure pypi token
run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- name: Publish to pypi
run: poetry publish --build