Skip to content

Weekly Tests

Weekly Tests #17

Workflow file for this run

name: Weekly Tests
# run this workflow weekly
on:
schedule:
- cron: "0 0 * * 0"
concurrency:
group: weekly-${{ github.ref }}
jobs:
collect-tests:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- id: set-matrix
run: |
echo "matrix=$(ls experiments/weekly_tests/*.yaml | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
run-tests:
needs: collect-tests
runs-on: [self-hosted, linux]
strategy:
matrix:
experiment: ${{ fromJson(needs.collect-tests.outputs.matrix) }}
steps:
- name: 'Cleanup build folder'
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: ./.github/actions/setup_env
- name: tests
timeout-minutes: 30
run: |
source .venv/bin/activate
python scripts/run_experiment.py ${{ matrix.experiment }} -j8 --print_period 0
- name: 'Create fname'
if: failure()
id: set-fname
run: echo "fname=$(basename ${{ matrix.experiment }} .yaml)" >> $GITHUB_OUTPUT
- name: 'Upload artifacts'
if: failure()
uses: actions/upload-artifact@v3
with:
name: ${{ steps.set-fname.outputs.fname }}
path: |
build/**/log.txt
build/**/*.log