Spaces:
Sleeping
Sleeping
Download .github/workflows/validate.yml from sohambose98/mini-rl-env: direct link, hf CLI and curl.
- Browser
- Download file 1.78 kB
-
https://huggingface.co/spaces/sohambose98/mini-rl-env/resolve/main/.github/workflows/validate.yml
- Command line
-
hf download hf://spaces/sohambose98/mini-rl-env/.github/workflows/validate.yml
-
curl -L -o validate.yml https://huggingface.co/spaces/sohambose98/mini-rl-env/resolve/main/.github/workflows/validate.yml
1.78 kB
| name: Phase 1 β Automated Validation | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| # ββ Job 1: Unit & integration tests ββββββββββββββββββββββββββββββββββββββββ | |
| test: | |
| name: pytest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Install package and test dependencies | |
| run: pip install -e ".[test]" | |
| - name: Run test suite | |
| run: pytest tests/ -v --tb=short | |
| # ββ Job 2: Dockerfile build gate βββββββββββββββββββββββββββββββββββββββββββ | |
| docker-build: | |
| name: docker build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Build Docker image (no push) | |
| run: docker build -t rl-env-server:ci -f grid_env/Server/Dockerfile . | |
| # ββ Job 3: OpenEnv spec validation (best-effort) βββββββββββββββββββββββββββ | |
| openenv-validate: | |
| name: openenv spec check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install package and test dependencies | |
| run: pip install -e ".[test]" | |
| - name: Validate OpenEnv spec (YAML compliance tests) | |
| run: pytest tests/test_openenv_spec.py -v --tb=short | |