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
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
## Checklist

- [ ] `just check` passes locally.
- [ ] After the Collector checks workflow first lands, mark `collector-checks` as required in the default branch ruleset/branch protection.
35 changes: 35 additions & 0 deletions .github/workflows/checks.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
name: Collector checks

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
collector-checks:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # ref: v6

- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # ref: v6
with:
python-version: "3.12"
cache: pip
cache-dependency-path: |
backend/requirements.txt
backend/requirements-dev.txt

- name: Set up Just
uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # ref: v4

- name: Install Collector dependencies
run: python -m pip install -r backend/requirements.txt -r backend/requirements-dev.txt

- name: Run Collector checks
run: just check
4 changes: 4 additions & 0 deletions Justfile
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
default:
@just --list

check:
ruff check backend
python3 -m pytest -q backend/tests

status:
#!/usr/bin/env sh
set -eu
Expand Down
Loading