Reorder #72
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
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Repo Dependencies | |
run: | | |
pip install -e . | |
- name: Run Tests | |
run: | | |
python -m unittest discover -s test/${{ matrix.test-suite }} |