-
Notifications
You must be signed in to change notification settings - Fork 10
57 lines (53 loc) · 1.97 KB
/
Copy pathcopilot-tests.yml
File metadata and controls
57 lines (53 loc) · 1.97 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
54
55
56
57
name: copilot tests
on:
pull_request:
paths:
- "copilot/**"
- ".github/workflows/copilot-tests.yml"
push:
branches: [main]
paths:
- "copilot/**"
- ".github/workflows/copilot-tests.yml"
permissions:
contents: read
jobs:
# Standard library only, so the composite action needs no install step. 3.9 is
# the floor the shared core supports.
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 copilot
python -m pytest tests -q
# The check runs against this repository, which carries the surfaces it looks
# for: AGENTS.md files, .github/instructions, and skill directories. So it is
# both a smoke test and a dogfood.
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 Copilot composition
run: python copilot/engine/capture.py snapshot
- name: Verify against the baseline, reporting without failing
# No baseline is committed for this repo yet, so verify exits 0 and says
# so. Once one is committed this becomes a real gate on ourselves.
run: python copilot/engine/capture.py verify