Skip to content

test github action

test github action #14

Workflow file for this run

name: CPU-only Unit Tests (agents)
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
cpu-tests:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository (with submodules)
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies (main repo)
run: |
pip install -r agents/requirements.txt
pip install datasets
- name: Install Enroot (standard flavor)
run: |
arch=$(dpkg --print-architecture)
curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.5.0/enroot_3.5.0-1_${arch}.deb
curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.5.0/enroot+caps_3.5.0-1_${arch}.deb
sudo apt-get update
sudo apt-get install -y ./*.deb
# - name: Clear AgentFly cache
# run: rm -rf ~/.cache/AgentFly
- name: Cache AgentFly cache
uses: actions/cache@v4
with:
path: ~/.cache/AgentFly
key: ${{ runner.os }}-agentfly-cache
restore-keys: |
${{ runner.os }}-agentfly-cache
- name: Test - all unit tests
run: |
cd agents
python -m pytest tests/unit/envs/test_alfworld_env.py