Spaces:
No application file
No application file
Sandeep Suresh
feat: Add CI workflows with pre-submit validation and update pytest dependencies
0b9509b Download .github/workflows/pytest.yml from SandyTheAdventurer/openenv: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/SandyTheAdventurer/openenv/resolve/main/.github/workflows/pytest.yml
- Command line
-
hf download hf://spaces/SandyTheAdventurer/openenv/.github/workflows/pytest.yml
-
curl -L -o pytest.yml https://huggingface.co/spaces/SandyTheAdventurer/openenv/resolve/main/.github/workflows/pytest.yml
536 Bytes
| name: Pytest CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pytest pytest-asyncio | |
| - name: Run tests | |
| run: pytest -q | |