Spaces:
Runtime error
Runtime error
| name: Integration Tests | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| integration-test: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: testing | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Cache pip dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -r requirements-dev.txt | |
| - name: Run integration tests | |
| run: | | |
| pytest tests/integration/ -v --tb=short | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| HF_CONFIG: continuous-integration | |
| IS_INTERNAL: true | |