Skip to content

Merge pull request #125 from nationalarchives/renovate/astral-sh-ruff… #418

Merge pull request #125 from nationalarchives/renovate/astral-sh-ruff…

Merge pull request #125 from nationalarchives/renovate/astral-sh-ruff… #418

Workflow file for this run

name: Run tests
on: push
jobs:
linter:
name: Code linter
runs-on: ubuntu-latest
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Run pre-commit
uses: pre-commit/[email protected]
env:
SKIP: no-commit-to-branch
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: 1.7.0
- name: Install libraries
run: poetry install
- name: Run tests with coverage
run: poetry run pytest