ci: fail closed when CodeQL analysis fails #5
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: windsurf tests | |
| on: | |
| pull_request: | |
| paths: | |
| - "windsurf/**" | |
| - ".github/workflows/windsurf-tests.yml" | |
| push: | |
| branches: [main] | |
| paths: | |
| - "windsurf/**" | |
| - ".github/workflows/windsurf-tests.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run the suite against the core in this checkout | |
| run: | | |
| pip install ./packages/agentrust-capture-core pytest | |
| cd windsurf | |
| python -m pytest tests -q | |
| self-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Install the core from this checkout | |
| run: pip install ./packages/agentrust-capture-core | |
| - name: Snapshot this repository's Windsurf composition | |
| run: python windsurf/engine/capture.py snapshot | |
| - name: Verify against the committed baseline | |
| run: python windsurf/engine/capture.py verify |