Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Add ruff checks on PRs #52

Add ruff checks on PRs

Add ruff checks on PRs #52

Workflow file for this run

name: Run Tests on PR
on:
pull_request:
branches:
- '*'
jobs:
test:
name: Test
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python -
poetry install
- name: Run tests
run: poetry run pytest --cov=metadata_service
- name: Run Ruff check
run: poetry run ruff check --output-format=github
- name: Run Ruff format
run: poetry run ruff format --diff