Skip to content

Refactor CI workflow to move formatting check to its own job #48

Refactor CI workflow to move formatting check to its own job

Refactor CI workflow to move formatting check to its own job #48

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
permissions:
contents: read
jobs:
check_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Check formatting
run: docker run --rm -v "$(pwd)":/app/ ghcr.io/nationalarchives/tna-python-dev:latest checkformat
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.14", "3.13", "3.12", "3.11", "3.10"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: python -m unittest discover test