Skip to content

Commit 8825ee6

Browse files
committed
Add pytestmark check to CI
1 parent 2da5548 commit 8825ee6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/run_tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ jobs:
6767
SMARTSIM_REDISAI: ${{ matrix.rai }}
6868

6969
steps:
70+
- name: Check Test Files are Marked
71+
run: |
72+
diff <(find tests -path tests/_legacy -prune -o -type f -name 'test_*.py' -print \
73+
| xargs grep -l 'pytestmark' \
74+
| sort) \
75+
<(find tests -path tests/_legacy -prune -o -type f -name 'test_*.py' -print \
76+
| sort)
77+
7078
- uses: actions/checkout@v4
7179
- uses: actions/setup-python@v5
7280
with:

0 commit comments

Comments
 (0)