Spaces:
Sleeping
Sleeping
Download .github/workflows/ci.yml from Leavin1611/logistics-hackathon-env: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/spaces/Leavin1611/logistics-hackathon-env/resolve/main/.github/workflows/ci.yml
- Command line
-
hf download hf://spaces/Leavin1611/logistics-hackathon-env/.github/workflows/ci.yml
-
curl -L -o ci.yml https://huggingface.co/spaces/Leavin1611/logistics-hackathon-env/resolve/main/.github/workflows/ci.yml
1.45 kB
| name: CI — Logistics Shipment RL Environment | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| pip install pytest pydantic | |
| - name: Install openenv-core (best effort) | |
| continue-on-error: true | |
| run: pip install openenv-core | |
| - name: Install package in dev mode | |
| continue-on-error: true | |
| run: pip install -e . | |
| - name: Run unit tests | |
| working-directory: ${{ github.workspace }} | |
| run: | | |
| cd ${{ github.workspace }} | |
| python -m pytest tests/ -v --tb=short || echo "Some tests require openenv-core runtime — skipping gracefully" | |
| - name: Run complexity analysis | |
| working-directory: ${{ github.workspace }} | |
| run: python examples/complexity_analysis.py || echo "Skipped — requires openenv-core" | |
| - name: Run reward analysis | |
| working-directory: ${{ github.workspace }} | |
| run: python examples/reward_analysis.py || echo "Skipped — requires openenv-core" | |