|
| 1 | +name: Trace Ace V141 V135 Runtime Assets |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: [agent/v141-v135-runtime-assets] |
| 5 | + paths: |
| 6 | + - 'competitions/trace_the_ace/train_v135_runtime_assets.py' |
| 7 | + - '.github/workflows/trace-ace-v141-v135-runtime-assets.yml' |
| 8 | + workflow_dispatch: |
| 9 | +jobs: |
| 10 | + build: |
| 11 | + runs-on: ubuntu-24.04 |
| 12 | + timeout-minutes: 120 |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v4 |
| 15 | + - uses: actions/setup-python@v5 |
| 16 | + with: {python-version: '3.12', cache: pip} |
| 17 | + - run: python -m pip install --disable-pip-version-check numpy pandas scipy scikit-learn gdown |
| 18 | + - name: Restore transcript cache |
| 19 | + id: tc |
| 20 | + uses: actions/cache@v4 |
| 21 | + with: |
| 22 | + path: transcripts.zip |
| 23 | + key: trace-ace-transcripts-v1-603547640 |
| 24 | + - name: Verify cache |
| 25 | + run: | |
| 26 | + set -euo pipefail |
| 27 | + test '${{ steps.tc.outputs.cache-hit }}' = 'true' |
| 28 | + test "$(stat -c%s transcripts.zip)" = '603547640' |
| 29 | + echo 'e685b85b04694e130c25b17d09cdd1892fbda5e9fa685e98b2300114b915aa2d transcripts.zip' | sha256sum -c - |
| 30 | + - name: Restore metadata |
| 31 | + run: | |
| 32 | + gdown 1EpqoamY0vFI2qE57R6wdqU5HwuoVk3Zz -O metadata.zip |
| 33 | + mkdir -p data/transcripts data/meta |
| 34 | + unzip -q transcripts.zip -d data/transcripts |
| 35 | + unzip -q metadata.zip -d data/meta |
| 36 | + echo "FEATURES=$(find data/meta -type f -name 'train_features*.csv' -print -quit)" >> "$GITHUB_ENV" |
| 37 | + echo "LABELS=$(find data/meta -type f -name 'train_labels*.csv' -print -quit)" >> "$GITHUB_ENV" |
| 38 | + FIRST=$(find data/transcripts -type f -name '*.csv' -print -quit); echo "TRANSCRIPTS=$(dirname "$FIRST")" >> "$GITHUB_ENV" |
| 39 | + - name: Build frozen V135 assets |
| 40 | + run: | |
| 41 | + cd competitions/trace_the_ace |
| 42 | + python train_v135_runtime_assets.py --features "../../$FEATURES" --labels "../../$LABELS" --transcripts "../../$TRANSCRIPTS" --out ../../v135_runtime_assets |
| 43 | + - uses: actions/upload-artifact@v4 |
| 44 | + with: |
| 45 | + name: trace-ace-v141-v135-runtime-assets |
| 46 | + path: v135_runtime_assets |
| 47 | + retention-days: 14 |
0 commit comments