-
Notifications
You must be signed in to change notification settings - Fork 42
36 lines (35 loc) · 974 Bytes
/
pr-format.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on:
pull_request:
branches:
- main
jobs:
check_lint_and_test:
runs-on: ubuntu-latest
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 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
- name: Install Repo Dependencies
run: |
pip install -e .
- name: Run analysis tests
run: |
python -m unittest discover -s test/analysis
- name: Run evaluation tests
run: |
python -m unittest discover -s test/evaluation
- name: Run rerank tests
run: |
python -m unittest discover -s test/rerank