Add advisory SDRF change report for dataset PRs #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # The review gate decides every dataset PR, but until now a change to it ran nothing: | |
| # sdrf-review.yml and validate-sdrf.yml are both path-filtered to datasets/**, so a PR | |
| # touching only .github/scripts/ triggered no checks at all. | |
| name: Review gate tests | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/scripts/**' | |
| - '.github/workflows/gate-tests.yml' | |
| - 'tests/**' | |
| push: | |
| branches: [main] | |
| paths: | |
| - '.github/scripts/**' | |
| - 'tests/**' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| # The gate itself imports nothing outside the standard library; pytest is the only | |
| # dependency the tests need. sdrf-pipelines is deliberately not installed -- these | |
| # tests cover the gate's own logic, and parse_sdrf is exercised by validate-sdrf.yml. | |
| - name: Install pytest | |
| run: python -m pip install --upgrade pip pytest | |
| - name: Run review gate tests | |
| run: python -m pytest tests/ -v --tb=short |