Run special checks: module lucene/sandbox #4
Workflow file for this run
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: "Run special checks: module lucene/sandbox" | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: | |
- 'main' | |
- 'branch_10x' | |
jobs: | |
faiss-tests: | |
name: tests for the Faiss codec (JDK ${{ matrix.java }} on ${{ matrix.os }}) | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
java: [ '23' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Faiss | |
uses: mamba-org/setup-micromamba@v2 | |
id: setup | |
with: | |
environment-name: faiss-env | |
condarc: 'channels: [pytorch, conda-forge]' | |
create-args: faiss-cpu=1.11.0 | |
- name: Checkout Lucene | |
uses: actions/checkout@v4 | |
- name: Prepare Lucene workspace | |
uses: ./.github/actions/prepare-for-build | |
- name: Run tests for Faiss codec | |
env: | |
LD_LIBRARY_PATH: ${{ steps.setup.outputs.environment-path }}/lib | |
run: ./gradlew -p lucene/sandbox -Dtests.faiss.run=true test --tests "org.apache.lucene.sandbox.codecs.faiss.*" | |
defaults: | |
run: | |
shell: bash -leo pipefail {0} |