Spaces:
Running
Running
Download .github/workflows/integration-tests.yml from OpenHands/openhands-index: direct link, hf CLI and curl.
- Browser
- Download file 994 Bytes
-
https://huggingface.co/spaces/OpenHands/openhands-index/resolve/refs%2Fpr%2F22/.github/workflows/integration-tests.yml
- Command line
-
hf download hf://spaces/OpenHands/openhands-index@refs/pr/22/.github/workflows/integration-tests.yml
-
curl -L -o integration-tests.yml https://huggingface.co/spaces/OpenHands/openhands-index/resolve/refs%2Fpr%2F22/.github/workflows/integration-tests.yml
994 Bytes
| 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 | |