Repository navigation
53 lines (49 loc) · 1.73 KB
/
Copy pathwindsurf-tests.yml
File metadata and controls
53 lines (49 loc) · 1.73 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
41
42
43
44
45
46
47
48
49
50
51
52
53
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: |
# The local package goes in with --no-deps: it has no runtime
# dependencies of its own, so nothing here resolves against PyPI.
pip install --require-hashes -r requirements/capture-core.txt
pip install --no-deps ./packages/agentrust-capture-core
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 --no-deps ./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