diff --git a/.github/workflows/process.yml b/.github/workflows/process.yml index f609f28ae2..1071484afb 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 @@ -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 2288517e02..d9e3e9de84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -102,6 +102,10 @@ 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:}" +run-tracker = "python tracking/run_tracking_inputs.py track process-tracking-data {args:}" + [tool.hatch.envs.docs] features = ["docs"] [tool.hatch.envs.docs.scripts]