From 85313311178739398a25acde0ec82dff2e9d6925 Mon Sep 17 00:00:00 2001 From: fOuttaMyPaint <154358121+TMHSDigital@users.noreply.github.com> Date: Sat, 23 May 2026 19:48:48 -0400 Subject: [PATCH] ci: run drift_check tests in validate.yml Adds a test-drift-check job to validate.yml that installs pytest from the new requirements-test.txt and runs pytest tests/ -v on every PR and push to main. The 9 tests in tests/test_required_workflows.py are pytest-discoverable as-is (functions named test_*). No conversion needed. The test file adds scripts/ to sys.path so no PYTHONPATH config is required. Signed-off-by: fOuttaMyPaint Signed-off-by: fOuttaMyPaint <154358121+TMHSDigital@users.noreply.github.com> --- .github/workflows/validate.yml | 16 ++++++++++++++++ requirements-test.txt | 1 + 2 files changed, 17 insertions(+) create mode 100644 requirements-test.txt diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 44ca4cc..4b97b6b 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -331,3 +331,19 @@ jobs: echo "::error::feat: or fix: commits require a VERSION bump. Update VERSION and commit before merging. Use '[skip version]' in the commit subject or body to opt out for workflow-only changes." exit 1 + + test-drift-check: + name: Run drift_check tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install test dependencies + run: pip install -r requirements-test.txt + + - name: Run drift_check tests + run: pytest tests/ -v diff --git a/requirements-test.txt b/requirements-test.txt new file mode 100644 index 0000000..5293116 --- /dev/null +++ b/requirements-test.txt @@ -0,0 +1 @@ +pytest>=8.0,<9.0