Spaces:
Running
Running
Download .github/workflows/test.yml from Liisdotcom/simulator: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/spaces/Liisdotcom/simulator/resolve/main/.github/workflows/test.yml
- Command line
-
hf download hf://spaces/Liisdotcom/simulator/.github/workflows/test.yml
-
curl -L -o test.yml https://huggingface.co/spaces/Liisdotcom/simulator/resolve/main/.github/workflows/test.yml
757 Bytes
| name: Tests | |
| on: | |
| push: | |
| branches: [dev, main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| 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 | |
| - name: Run tests | |
| run: pytest tests/ -v --tb=short | |
| - name: Test summary | |
| if: always() | |
| run: | | |
| echo "## Test Results" >> $GITHUB_STEP_SUMMARY | |
| echo "Tests completed. Check output above for details." >> $GITHUB_STEP_SUMMARY | |