Merge pull request #130 from nationalarchives/corb2 #434
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |