Spaces:
Sleeping
Sleeping
| name: OpenEnv Validation CI | |
| on: | |
| push: | |
| branches: [ "main", "master" ] | |
| pull_request: | |
| branches: [ "main", "master" ] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -e . | |
| - name: Install OpenEnv validator | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install openenv-core | |
| - name: Run OpenEnv validator | |
| run: | | |
| openenv validate . | |
| - name: Run tests | |
| run: | | |
| python -m pip install pytest | |
| pytest -q | |
| lint: | |
| runs-on: ubuntu-latest | |
| needs: validate | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install lint tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff mypy | |
| - name: Run ruff | |
| run: ruff check . | |
| - name: Run mypy | |
| run: mypy --ignore-missing-imports . || echo "mypy found issues" | |
| - name: Verify Docker Builds (optional) | |
| run: | | |
| docker build -t test-openenv . || echo "Docker build failed or not available on runner" | |