-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (46 loc) · 1.6 KB
/
java_coverage.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
37
38
39
40
41
42
43
44
45
46
47
48
name: Coveralls
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false # this is required for the javadoc deploy plugin
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
- name: Print maven version
run: mvn -version
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: |
~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}-1
- name: Cache Python packages
uses: actions/cache@v4
with:
path: |
~/.cache/pip
key: ${{ runner.os }}-python-${{ hashFiles('**/requirements.txt') }}-1
- name: Cache Transformers models
uses: actions/cache@v4
with:
path: |
~/.cache/huggingface
key: ${{ runner.os }}-transformers-models
- name: Setup Python
uses: actions/setup-python@v5
with:
# TODO: the latest pytorch version is only available for 3.9 and not yet in 3.10 - replace it with 3.x if it is available
python-version: '3.11'
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install python dependencies
run: pip install -r ./matching-ml/src/main/resources/requirements.txt
- name: Build with Maven and Run All Tests 📦🕵️
run: mvn clean install
- name: Coveralls
run: mvn coveralls:report -DrepoToken=${{ secrets.COVERALLS }}