From df27484b637162b2e089ee8b8fc974f9d8bfb309 Mon Sep 17 00:00:00 2001 From: Timothy Nunn Date: Thu, 27 Aug 2026 10:05:46 +0100 Subject: [PATCH 1/2] Write tracker CI job as hatch script --- .github/workflows/process.yml | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/process.yml b/.github/workflows/process.yml index f609f28ae2..3aaa1c5375 100644 --- a/.github/workflows/process.yml +++ b/.github/workflows/process.yml @@ -91,7 +91,7 @@ jobs: with: python-version: ${{ env.python-version }} - name: Run regression input files - run: hatch run python tracking/run_tracking_inputs.py run tests/regression/input_files + run: hatch run track:create-tracking-inputs - name: Move other files run: mv tests/regression/input_files/*.json tracking/ - name: Archive tracked MFILEs diff --git a/pyproject.toml b/pyproject.toml index 2288517e02..835945e0fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -102,6 +102,9 @@ tests-integration = "pytest -n auto -v tests/integration {args:}" tests-examples = "pytest -n auto -v tests/examples {args:}" tests-cov = "pytest -n auto --cov process --cov-report html:htmlcov --cov-report xml {args:tests}" +[tool.hatch.envs.track.scripts] +create-tracking-inputs = "python tracking/run_tracking_inputs.py run tests/regression/input_files {args:}" + [tool.hatch.envs.docs] features = ["docs"] [tool.hatch.envs.docs.scripts] From a874d4bf0f6ce9365f6cc91292438307fdab6b30 Mon Sep 17 00:00:00 2001 From: Timothy Nunn Date: Fri, 28 Aug 2026 16:44:32 +0100 Subject: [PATCH 2/2] Add run-tracker to hatch scripts --- .github/workflows/process.yml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/process.yml b/.github/workflows/process.yml index 3aaa1c5375..1071484afb 100644 --- a/.github/workflows/process.yml +++ b/.github/workflows/process.yml @@ -189,7 +189,7 @@ jobs: run: | MSG=$(printf "%q " $COMMIT_MESSAGE) git config --global --add safe.directory '*' - hatch run python tracking/run_tracking_inputs.py track process-tracking-data "${MSG}" ${{ github.sha }} + hatch run track:run-tracker "${MSG}" ${{ github.sha }} - name: Create the tracking dashboard run: hatch run python tracking/tracking_data.py plot process-tracking-data --out tracking.html - name: Archive tracking dashboard diff --git a/pyproject.toml b/pyproject.toml index 835945e0fa..d9e3e9de84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,6 +104,7 @@ tests-cov = "pytest -n auto --cov process --cov-report html:htmlcov --cov-repo [tool.hatch.envs.track.scripts] create-tracking-inputs = "python tracking/run_tracking_inputs.py run tests/regression/input_files {args:}" +run-tracker = "python tracking/run_tracking_inputs.py track process-tracking-data {args:}" [tool.hatch.envs.docs] features = ["docs"]