Workflow file for this run
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
| name: SpecLeft Pull Request Workflow | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| pr-check: | |
| runs-on: ubuntu-latest | |
| name: PR Checks | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install . | |
| echo "PYTHONPATH=${GITHUB_WORKSPACE}:${PYTHONPATH}" >> $GITHUB_ENV | |
| # 1. SpecLeft Core Policy (Critical Gate) | |
| - name: 'Core Feature Coverage [Quality Gate]' | |
| run: specleft enforce .specleft/licenses/policy-core.yml | |
| # 2. Run High-Priority Tests (Fast Feedback) | |
| - name: Behaviour Tests [High+ Priority] | |
| run: pytest --specleft-priority critical --specleft-priority high --junitxml=pr-report.xml |