Repository navigation
65 lines (65 loc) · 2.79 KB
/
Copy pathweave.yml
File metadata and controls
65 lines (65 loc) · 2.79 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
58
59
60
61
62
63
64
65
name: Weave modular experiments
on:
pull_request:
paths:
- 'research/weave/**'
- '.github/workflows/weave.yml'
- 'stack-manifest.json'
- 'STACK_MANIFEST.md'
push:
paths:
- 'research/weave/**'
- '.github/workflows/weave.yml'
- 'stack-manifest.json'
- 'STACK_MANIFEST.md'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout event source with PR isolation
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Verify exact event identity
env:
SOURCE_SHA: ${{ github.sha }}
run: test "$(git rev-parse HEAD)" = "$SOURCE_SHA"
- name: Checkout exact native geometry producer
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
repository: The-Interdependency/ucns
ref: 905e66964a495d7596a577bb64e4158db9465864
path: .weave-inputs/ucns
persist-credentials: false
- name: Verify native cycle and existing regressions
run: |
set -euo pipefail
export WEAVE_SOURCES="$GITHUB_WORKSPACE/.weave-inputs"
test "$(git -C "$WEAVE_SOURCES/ucns" rev-parse HEAD)" = "905e66964a495d7596a577bb64e4158db9465864"
python3 -VV
PYTHONDONTWRITEBYTECODE=1 python3 research/weave/test.py --receipt "$RUNNER_TEMP/weave-check.json"
cat "$RUNNER_TEMP/weave-check.json"
PYTHONDONTWRITEBYTECODE=1 python3 research/weave/cycle.py demo | tee "$RUNNER_TEMP/weave-demo.json"
- name: Package tracked research source and observed evidence
if: always()
run: |
set -euo pipefail
mkdir -p "$RUNNER_TEMP/weave-inspection"
git archive --format=zip --output="$RUNNER_TEMP/weave-inspection/stack.zip" HEAD research/weave tools stack-manifest.json STACK_MANIFEST.md AGENTS.md README.md docs
git -C .weave-inputs/ucns archive --format=zip --output="$RUNNER_TEMP/weave-inspection/ucns.zip" HEAD
git rev-parse HEAD > "$RUNNER_TEMP/weave-inspection/STACK_HEAD.txt"
git -C .weave-inputs/ucns rev-parse HEAD > "$RUNNER_TEMP/weave-inspection/UCNS_HEAD.txt"
for evidence in weave-check.json weave-demo.json; do
if test -f "$RUNNER_TEMP/$evidence"; then cp "$RUNNER_TEMP/$evidence" "$RUNNER_TEMP/weave-inspection/"; fi
done
- name: Retain exact-source research bundle, not a security release
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1, Node 24
with:
name: weave-inspection-${{ github.sha }}
path: ${{ runner.temp }}/weave-inspection/
if-no-files-found: error
retention-days: 7