From 8825ee694dce68358bc68969cd466b13bdee6143 Mon Sep 17 00:00:00 2001 From: Matt Drozt Date: Wed, 24 Jul 2024 16:20:45 -0700 Subject: [PATCH] Add pytestmark check to CI --- .github/workflows/run_tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 3ac3433d1..cc42d566b 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -67,6 +67,14 @@ jobs: SMARTSIM_REDISAI: ${{ matrix.rai }} steps: + - name: Check Test Files are Marked + run: | + diff <(find tests -path tests/_legacy -prune -o -type f -name 'test_*.py' -print \ + | xargs grep -l 'pytestmark' \ + | sort) \ + <(find tests -path tests/_legacy -prune -o -type f -name 'test_*.py' -print \ + | sort) + - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: