fix: pip when installing venv runs entirely offline #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Functional Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test-incremental: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt | |
| python -m pip install -r test/requirements.txt | |
| - name: Run incremental ingest test | |
| env: | |
| DATA_DIR: ./test_data_dummy | |
| STORAGE_DIR: ./test_storage_dummy | |
| run: | | |
| # Download models first so offline mode works in tests | |
| python ingest.py --download-models | |
| pytest test/test_incremental_ingest.py |