Spaces:
Running on A10G
Running on A10G
Download .github/workflows/ci.yml from RDS777/TARGET_SPACE: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/spaces/RDS777/TARGET_SPACE/resolve/main/.github/workflows/ci.yml
- Command line
-
hf download hf://spaces/RDS777/TARGET_SPACE/.github/workflows/ci.yml
-
curl -L -o ci.yml https://huggingface.co/spaces/RDS777/TARGET_SPACE/resolve/main/.github/workflows/ci.yml
1.09 kB
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 40 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Installer les dépendances (torch CPU) | |
| run: | | |
| pip install --index-url https://download.pytorch.org/whl/cpu torch | |
| pip install -r requirements-dev.txt | |
| - name: Vérifier que config.json correspond au preset par défaut | |
| run: | | |
| python scripts/export_config.py --out /tmp/config.json | |
| diff <(python -c "import json;d=json.load(open('config.json'));print(json.dumps(d,sort_keys=True))") \ | |
| <(python -c "import json;d=json.load(open('/tmp/config.json'));print(json.dumps(d,sort_keys=True))") | |
| - name: Tests unitaires et d'intégration | |
| env: | |
| TRITON_INTERPRET: "1" | |
| run: python -m pytest -q -m "not slow" | |
| - name: Entraînement distribué DDP (2 processus CPU) | |
| run: python -m pytest -q -m slow | |