Skip to content

Init

Init #6

Workflow file for this run

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