Skip to content

PR-A2: drive python env + adaptive co-player runtime + conditioning t… #90

PR-A2: drive python env + adaptive co-player runtime + conditioning t…

PR-A2: drive python env + adaptive co-player runtime + conditioning t… #90

Workflow file for this run

name: train-ci
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
test-training:
name: test-training
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Check disk space (before cleanup)
run: df -h
- name: Free up disk space
run: |
echo "Before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo apt-get clean
sudo rm -rf ~/.cache/pip /tmp/* /var/tmp/*
echo "After cleanup:"
df -h
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y build-essential
python -m pip install -U pip
pip install -e .
python setup.py build_ext --inplace --force
- name: Check disk space (after install)
run: df -h
- name: Test training
run: python tests/test_drive_train.py
timeout-minutes: 20
test-scenarios:
name: test-scenario-${{ matrix.scenario.name }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
scenario:
- { name: "normal", test: "1" }
- { name: "conditioned", test: "2" }
- { name: "adaptive", test: "3" }
- { name: "population", test: "4" }
- { name: "population_adaptive", test: "5" }
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Check disk space (before cleanup)
run: df -h
- name: Free up disk space
run: |
echo "Before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo apt-get clean
sudo rm -rf ~/.cache/pip /tmp/* /var/tmp/*
echo "After cleanup:"
df -h
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y build-essential
python -m pip install -U pip
pip install -e .
python setup.py build_ext --inplace --force
- name: Check disk space (after install)
run: df -h
- name: Test scenario - ${{ matrix.scenario.name }}
run: python tests/test_drive_scenarios.py ${{ matrix.scenario.argument }}
timeout-minutes: 15