Fallback to unaligned vectors if dimension not specified #4399
Workflow file for this run
This file contains 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: nucliadb Standalone (py) | |
env: | |
COMPONENT: nucliadb-standalone | |
GCP_WORKLOAD_IDENTITY_PROVIDER: "projects/224545243904/locations/global/workloadIdentityPools/gh-nuclia/providers/gh-nuclia-provider" | |
GCP_SERVICE_ACCOUNT: "[email protected]" | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/nucliadb_standalone.yml" | |
- "charts/nucliadb/**" | |
- "nucliadb/src/nucliadb/ingest/**" | |
- "nucliadb/src/nucliadb/writer/**" | |
- "nucliadb/src/nucliadb/standalone/**" | |
- "nucliadb/src/nucliadb/reader/**" | |
- "nucliadb/src/nucliadb/search/**" | |
- "nucliadb_models/**" | |
- "nucliadb_protos/**" | |
- "nucliadb_node/**" | |
- "nucliadb_sidecar/**" | |
- "nucliadb_vectors/**" | |
- "nucliadb_texts/**" | |
- "nucliadb_texts2/**" | |
- "nucliadb_paragraphs/**" | |
- "nucliadb_core/**" | |
- "nucliadb_relations/**" | |
- 'nucliadb_relations2/**' | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/nucliadb_standalone.yml" | |
- "charts/nucliadb/**" | |
- "nucliadb/src/nucliadb/ingest/**" | |
- "nucliadb/src/nucliadb/writer/**" | |
- "nucliadb/src/nucliadb/standalone/**" | |
- "nucliadb/src/nucliadb/reader/**" | |
- "nucliadb/src/nucliadb/search/**" | |
- "nucliadb_models/**" | |
- "nucliadb_protos/**" | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
# Job to run tests | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Authenticate to Google Cloud | |
id: gcp-auth | |
uses: google-github-actions/auth@v1 | |
with: | |
workload_identity_provider: "${{ env.GCP_WORKLOAD_IDENTITY_PROVIDER }}" | |
service_account: "${{ env.GCP_SERVICE_ACCOUNT }}" | |
token_format: access_token | |
- name: Login to Google Artifact Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: europe-west4-docker.pkg.dev | |
username: oauth2accesstoken | |
password: ${{ steps.gcp-auth.outputs.access_token }} | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install the package | |
run: make -C nucliadb/ install-dev | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
node_modified: | |
- 'nucliadb_core/**' | |
- 'nucliadb_node/src/**' | |
- 'nucliadb_paragraphs3/**' | |
- 'nucliadb_procs/**' | |
- 'nucliadb_relations2/**' | |
- 'nucliadb_telemetry/**' | |
- 'nucliadb_texts2/**' | |
- 'nucliadb_vectors/**' | |
sidecar_modified: | |
- 'nucliadb_sidecar/**' | |
- name: Calc git info | |
id: git | |
run: |- | |
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | |
echo "branch=$BRANCH" >> $GITHUB_OUTPUT | |
- name: Install jq | |
run: | | |
sudo apt-get update -y || true | |
sudo apt-get install -y jq | |
- name: Build local Node for testing | |
if: steps.filter.outputs.node_modified == 'true' | |
env: | |
SECRET_KEY: ${{ secrets.RUST_BUILD_SERVER_SECRET }} | |
COMMIT_HASH: ${{ github.event.pull_request.head.sha || github.sha }} | |
BRANCH: ${{ steps.git.outputs.branch }} | |
run: | | |
make build-node-debug | |
- name: Build local Sidecar for testing | |
if: steps.filter.outputs.sidecar_modified == 'true' | |
run: | | |
make build-sidecar | |
- name: Run tests | |
run: | | |
make -C nucliadb/ test-cov-standalone | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: standalone |