-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.29 KB
/
Copy pathpython-validator-tests.yml
File metadata and controls
40 lines (34 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Python Validator Tests
on:
push:
branches:
- main
- master
pull_request:
jobs:
python-validator-tests:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dev dependencies
run: pip install -r requirements-dev.txt
# Database-backed tests (integration/e2e/parity) run in the Linux
# integration-postgres job of quality-gate.yml, which has a PostgreSQL
# service. Service containers are Linux-only, so this Windows job covers
# the database-free markers. Missing prerequisites FAIL rather than skip,
# so this job must not collect the database-backed markers.
- name: Run validator tests (PowerShell)
shell: pwsh
run: powershell -NoProfile -ExecutionPolicy Bypass -File "tests/run_python_tests.ps1"
# Final block accounts for every test, including skips (with reasons)
# and tests deselected by the marker filter. --strict fails on any skip.
- name: Final result with skip accounting
shell: pwsh
run: |
python scripts/test_report.py `
--markers "unit or regression or security or snapshot" --strict