Skip to content

Commit 5053e7a

Browse files
authored
ci: run drift_check tests in validate.yml (#63)
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 <tmhospitalitystrategies@gmail.com> Signed-off-by: fOuttaMyPaint <154358121+TMHSDigital@users.noreply.github.com>
1 parent 063e150 commit 5053e7a

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/validate.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,3 +331,19 @@ jobs:
331331
332332
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."
333333
exit 1
334+
335+
test-drift-check:
336+
name: Run drift_check tests
337+
runs-on: ubuntu-latest
338+
steps:
339+
- uses: actions/checkout@v6
340+
341+
- uses: actions/setup-python@v5
342+
with:
343+
python-version: "3.12"
344+
345+
- name: Install test dependencies
346+
run: pip install -r requirements-test.txt
347+
348+
- name: Run drift_check tests
349+
run: pytest tests/ -v

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest>=8.0,<9.0

0 commit comments

Comments
 (0)