Merge pull request #227 from nationalarchives/renovate/localstack-loc… #911
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 linter & 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.11" | |
cache: pip | |
cache-dependency-path: | | |
requirements/base.txt | |
requirements/local.txt | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] | |
env: | |
SKIP: no-commit-to-branch | |
test: | |
env: | |
MARKLOGIC_HOST: "" | |
MARKLOGIC_USER: "" | |
MARKLOGIC_PASSWORD: "" | |
name: Run unit tests | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- run: pip install -r requirements/local.txt | |
- run: python -m pytest ds-caselaw-ingester/tests.py |