Skip to content

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

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

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

Workflow file for this run

name: Run linter & unit tests
on: push
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Run pre-commit
uses: pre-commit/[email protected]
env:
SKIP: no-commit-to-branch
test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: 1.4.2
- name: Install libraries
run: poetry install
- name: Run tests
run: cd src && poetry run python -m unittest