Repository navigation
Expand file tree
/
Copy pathtrace-ace-v136-full-v135-verification.yml
More file actions
70 lines (69 loc) · 2.99 KB
/
Copy pathtrace-ace-v136-full-v135-verification.yml
File metadata and controls
70 lines (69 loc) · 2.99 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
66
67
68
69
70
name: Trace Ace V136 Full V135 Verification
on:
pull_request:
branches: [agent/v135-nested-supported-stack]
paths:
- 'competitions/trace_the_ace/v136_full_v135_verification.py'
- '.github/workflows/trace-ace-v136-full-v135-verification.yml'
workflow_dispatch:
jobs:
verify:
runs-on: ubuntu-24.04
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- name: Install dependencies
run: python -m pip install --disable-pip-version-check numpy pandas scipy scikit-learn gdown
- name: Restore frozen transcript archive from GitHub cache only
id: transcript-cache
uses: actions/cache@v4
with:
path: transcripts.zip
key: trace-ace-transcripts-v1-603547640
- name: Require exact transcript cache
run: |
set -euo pipefail
test '${{ steps.transcript-cache.outputs.cache-hit }}' = 'true'
test "$(stat -c%s transcripts.zip)" = '603547640'
echo 'e685b85b04694e130c25b17d09cdd1892fbda5e9fa685e98b2300114b915aa2d transcripts.zip' | sha256sum -c -
- name: Download frozen small metadata archive only
run: |
set -euo pipefail
gdown 1EpqoamY0vFI2qE57R6wdqU5HwuoVk3Zz -O metadata.zip
mkdir -p data/transcripts data/meta
unzip -q transcripts.zip -d data/transcripts
unzip -q metadata.zip -d data/meta
- name: Resolve and audit schemas
run: |
set -euo pipefail
FEATURES=$(find data/meta -type f -name 'train_features*.csv' -print -quit)
LABELS=$(find data/meta -type f -name 'train_labels*.csv' -print -quit)
FIRST=$(find data/transcripts -type f -name '*.csv' -print -quit)
TRANSCRIPTS=$(dirname "$FIRST")
test -n "$FEATURES" && test -n "$LABELS" && test -n "$TRANSCRIPTS"
python - <<'PY' "$FEATURES" "$LABELS"
import pandas as pd,sys
f=pd.read_csv(sys.argv[1]); y=pd.read_csv(sys.argv[2])
print('FEATURE_COLUMNS',list(f.columns)); print('LABEL_COLUMNS',list(y.columns)); print('SHAPES',f.shape,y.shape)
assert len(f)==35072 and len(y)==35072
PY
echo "FEATURES=$FEATURES" >> "$GITHUB_ENV"
echo "LABELS=$LABELS" >> "$GITHUB_ENV"
echo "TRANSCRIPTS=$TRANSCRIPTS" >> "$GITHUB_ENV"
- name: Run frozen V136 full verification
run: |
cd competitions/trace_the_ace
python v136_full_v135_verification.py --features "../../$FEATURES" --labels "../../$LABELS" --transcripts "../../$TRANSCRIPTS" --out ../../v136_full_v135_verification.json
- name: Show decision
if: always()
run: cat v136_full_v135_verification.json || true
- uses: actions/upload-artifact@v4
if: always()
with:
name: trace-ace-v136-full-v135-verification
path: v136_full_v135_verification.json
retention-days: 14