Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CODEOWNERS → .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@TotalDwarf03
@ONS-Innovation/keh-dev
47 changes: 19 additions & 28 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,29 @@
## What type of PR is this? (check all applicable)
<!-- markdownlint-disable MD041 -->
## Overview

- [ ] Refactor
- [ ] Feature
- [ ] Bug Fix
- [ ] Optimization
- [ ] Documentation Update
<!-- Provide an overview of the changes in this pull request -->

### What
## Testing

Describe what you have changed and why.
<!-- Describe how to test the changes in this pull request -->

### Testing
## Checklist

Have any new tests been added as part of this issue? If not, try to explain why test coverage is not needed here.
<!-- Please check off the following items before submitting this pull request -->
<!-- If anything is not applicable, please explain why in the exemptions section -->

- [ ] Yes
- [ ] No
Please write a brief description of why test coverage is not necessary here.
- [ ] Not as part of this ticket. (Could be done at a later point)
- [ ] I have reviewed the changes in this pull request
- [ ] I have tested the changes locally
- [ ] I have updated/created any relevant documentation
- [ ] I have updated/created any relevant tests
- [ ] I have added any necessary labels to this pull request
- [ ] I have assigned myself to this pull request
- [ ] I have assigned the appropriate reviewers to this pull request

### Documentation
### Exemptions

Has any new documentation been written as part of this issue? We should try to keep documentation up to date
as new code is added, rather than leaving it for the future.
<!-- If any of the above checklist items are not applicable, please explain why here -->

- [ ] Yes
- [ ] No
Please write a brief description of why documentation is not necessary here.
- [ ] Not as part of this ticket. (Could be done at a later point)
## Additional Notes

### Related issues

Provide links to any related issues.

### How to review

Describe the steps required to test the changes.
<!-- Add any additional notes or comments here -->
53 changes: 53 additions & 0 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: Documentation CI
on:
push:
branches: [main]
paths: ["**/*.md"]
pull_request:
branches: [main]
paths: ["**/*.md"]
Comment thread
TotalDwarf03 marked this conversation as resolved.
permissions:
contents: read
jobs:
lint-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # V4.3.1
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # V5
with:
node-version: "20"
- name: Install markdownlint
run: |
npm install -g markdownlint-cli
- name: Run markdownlint
run: |
markdownlint **/*.md
Comment thread
TotalDwarf03 marked this conversation as resolved.
verify-build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # V4.3.1
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # V5.6.0
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # V4.3.0
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install poetry
- run: poetry config virtualenvs.create false
- run: poetry install --only docs
- run: mkdocs build
39 changes: 39 additions & 0 deletions .github/workflows/ci-fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Linting and Formatting
on:
push:
branches: [main]
paths:
- src/**
- tests/**
pull_request:
branches: [main]
paths:
- src/**
- tests/**
Comment thread
TotalDwarf03 marked this conversation as resolved.
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # V4.3.1
with:
persist-credentials: false
- name: Install Poetry
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # V5.6.0
with:
python-version-file: ".python-version"
cache: poetry
- name: Install dependencies
run: |
make install-dev
- name: Run linters
run: |
make lint
39 changes: 39 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Testing
on:
push:
branches: [main]
paths:
- src/**
- tests/**
pull_request:
branches: [main]
paths:
- src/**
- tests/**
Comment thread
TotalDwarf03 marked this conversation as resolved.
permissions:
contents: read
jobs:
unit-tests:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # V4.3.1
with:
persist-credentials: false
- name: Install Poetry
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # V5.6.0
with:
python-version-file: ".python-version"
cache: poetry
- name: Install dependencies
run: |
make install-dev
- name: Run tests
run: |
make test
36 changes: 36 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Deploy Documentation (MkDocs)
on:
push:
branches: [main]
paths: [docs/**]
Comment thread
TotalDwarf03 marked this conversation as resolved.
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # V4.3.1
with:
persist-credentials: true # Persist credentials since git operations are used.
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # V5.6.0
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # V4.3.0
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install poetry
- run: poetry config virtualenvs.create false
- run: poetry install --only docs
- run: mkdocs gh-deploy --force
32 changes: 0 additions & 32 deletions .github/workflows/deploy_mkdocs.yml

This file was deleted.

Loading
Loading