This repository has been archived by the owner on Dec 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
81 lines (79 loc) · 2.49 KB
/
test.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Unit Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
distribution: [temurin]
java-version: ['11', '17']
env:
MCL: examples/mcl
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build Markov Clustering
run: make -C examples mcl
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
- name: Check for Updates
run: mvn -B versions:display-dependency-updates versions:display-plugin-updates
- name: Build with Maven
run: mvn -B package
- name: Build with Maven (Shade)
run: mvn -Dshade=true -B package
- name: Build Javadoc
run: mvn -B javadoc:javadoc
if: matrix.java-version == '17' && github.ref == 'refs/heads/master'
- name: Deploy with Maven
run: mvn deploy -B -DskipTests=true -DaltDeploymentRepository=local::default::file://repo
- name: Upload Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/site/apidocs
if: matrix.java-version == '17' && github.ref == 'refs/heads/master'
examples:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build Markov Clustering
run: make -C examples mcl
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install networkx
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Build with Maven
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dshade=true -B
- name: Symlink watset.jar
run: ln -sf $PWD/target/watset.jar examples/watset.jar
- name: Run Examples
run: make -C examples HardClustering FuzzyClustering EvaluateClustering PickleGraph PickleClustering CommandLine
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run ShellCheck
run: bash -c 'shopt -s globstar nullglob; shellcheck **/*.{sh,ksh,bash}'
- name: Validate CITATION.cff
uses: citation-file-format/[email protected]
with:
args: "--validate"