Download .github/workflows/ci.yml from PythonMindset/dakar-power-prediction: direct link, hf CLI and curl.
- Browser
- Download file 609 Bytes
-
https://huggingface.co/spaces/PythonMindset/dakar-power-prediction/resolve/main/.github/workflows/ci.yml
- Command line
-
hf download hf://spaces/PythonMindset/dakar-power-prediction/.github/workflows/ci.yml
-
curl -L -o ci.yml https://huggingface.co/spaces/PythonMindset/dakar-power-prediction/resolve/main/.github/workflows/ci.yml
609 Bytes
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true # le CSV d'entraînement (Git LFS) sert de référence aux tests d'encodage | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt pytest | |
| - name: Run tests | |
| run: python -m pytest tests/ -v | |