Spaces:
Sleeping
Sleeping
| name: CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install uv | |
| run: pip install uv | |
| - name: Sync deps | |
| run: | | |
| uv venv | |
| source .venv/bin/activate | |
| uv sync | |
| # ICI : on rend src importable partout | |
| - name: Make src importable | |
| run: echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
| - name: Run tests | |
| run: | | |
| source .venv/bin/activate | |
| pytest -q |