Repository navigation
Validate final routing policies and harden artifact loading (#89) #127
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: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| test: | |
| name: Python ${{ matrix.python-version }} (${{ matrix.dependencies }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12", "3.13", "3.14"] | |
| dependencies: [latest] | |
| include: | |
| - python-version: "3.12" | |
| dependencies: minimum | |
| - python-version: "3.12" | |
| dependencies: faiss | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install package and dev dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ "${{ matrix.dependencies }}" = "minimum" ]; then | |
| python -m pip install -e ".[dev]" "numpy==1.26.4" "scikit-learn==1.4.2" "joblib==1.3.2" | |
| elif [ "${{ matrix.dependencies }}" = "faiss" ]; then | |
| python -m pip install -e ".[dev,faiss]" plotly | |
| else | |
| python -m pip install -e ".[dev]" | |
| fi | |
| python -m pip check | |
| - name: Run tests | |
| run: pytest tests/ -v --tb=short | |
| watch-js: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: js | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| cache-dependency-path: js/package-lock.json | |
| - run: npm ci | |
| - run: npm test -- --maxWorkers=1 --minWorkers=1 | |
| - run: npm run build |