Skip to content

Update args and handling of max passage words #574

Update args and handling of max passage words

Update args and handling of max passage words #574

Workflow file for this run

on:
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
env:
# Put heavy temp / cache on the large /mnt disk
TMPDIR: /mnt/tmp
PRE_COMMIT_HOME: /mnt/pre-commit-cache
PIP_NO_CACHE_DIR: "1"
steps:
- uses: actions/checkout@v4
- name: Prepare temp/cache directories on /mnt
run: |
sudo mkdir -p "$TMPDIR" "$PRE_COMMIT_HOME"
sudo chown "$USER":"$USER" "$TMPDIR" "$PRE_COMMIT_HOME"
df -h /
df -h /mnt
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Linter and Formatter Dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit black isort
- name: Run Lint
run: |
pre-commit run --all-files
unit_tests:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
test-suite: [analysis, evaluation, rerank]
env:
TMPDIR: /mnt/tmp
PIP_NO_CACHE_DIR: "1"
steps:
- uses: actions/checkout@v4
- name: Prepare temp directory on /mnt
run: |
sudo mkdir -p "$TMPDIR"
sudo chown "$USER":"$USER" "$TMPDIR"
df -h /
df -h /mnt
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Repo Dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir -e .
- name: Run Tests
run: |
python -m unittest discover -s "test/${{ matrix.test-suite }}"