Skip to content

Commit 2a67204

Browse files
authored
Update maven-test.yml (#1121)
* Update maven-test.yml The runner version was bumped to 2.321 which rely on Ubuntu 24.4 instead of Ubuntu 22.04. And the default version Python is 3.12 instead of 3.10, which seems to make waf fails * Update maven-test.yml (ibex has its own job) * Update maven-test.yml (simplification)
1 parent 1a29684 commit 2a67204

1 file changed

Lines changed: 28 additions & 20 deletions

File tree

.github/workflows/maven-test.yml

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,36 @@ name: Java CI with Maven
66
on: [push, pull_request]
77

88
jobs:
9+
test-ibex:
10+
runs-on: ubuntu-20.04
11+
# The different steps
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
submodules: 'true'
16+
- name: Set up JDK 11
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: '11'
20+
distribution: 'temurin'
21+
cache: 'maven'
22+
23+
# Install Ibex
24+
- name: Install ibex
25+
run: |
26+
sh scripts/install-ibex.sh
27+
28+
# Regression tests
29+
- name: Test Ibex
30+
run: mvn --file pom.xml test -Pcoverage -DtestFailureIgnore=true -Dgroups=ibex
31+
932
test-solver:
1033
runs-on: ubuntu-latest
1134
# Tests matrix
1235
strategy:
1336
#fail-fast: false
1437
matrix:
15-
group: [ "1s", "10s", "checker", "ibex" ]
38+
group: [ "1s", "10s", "checker" ]
1639

1740
# The different steps
1841
steps:
@@ -26,14 +49,10 @@ jobs:
2649
distribution: 'temurin'
2750
cache: 'maven'
2851

29-
# Install Ibex
30-
- name: Install Ibex
31-
if: matrix.group == 'ibex'
32-
run: sh scripts/install-ibex.sh
33-
3452
# Regression tests
3553
- name: Test ${{ matrix.group }}
36-
run: mvn -B --file pom.xml package -Pcoverage -DtestFailureIgnore=true -Dgroups=${{ matrix.group }}
54+
run: mvn --file pom.xml test -Pcoverage -DtestFailureIgnore=true -Dgroups=${{ matrix.group }}
55+
3756
test-parser:
3857
needs: [ test-solver ]
3958
runs-on: ubuntu-latest
@@ -57,13 +76,7 @@ jobs:
5776

5877
# Regression tests
5978
- name: Test ${{ matrix.group }}
60-
run: mvn -B --file pom.xml package -Pcoverage -DtestFailureIgnore=true -Dgroups=${{ matrix.group }}
61-
62-
- name: 'Upload XCSP results'
63-
if: matrix.group == 'xcsp'
64-
uses: actions/upload-artifact@v3
65-
with:
66-
path: ${{ github.workspace }}/parsers/target/xcsp_results.csv
79+
run: mvn --file pom.xml test -Pcoverage -DtestFailureIgnore=true -Dgroups=${{ matrix.group }}
6780

6881
test-mzn:
6982
needs: [ test-solver ]
@@ -88,9 +101,4 @@ jobs:
88101

89102
# Regression tests
90103
- name: Test ${{ matrix.group }}
91-
run: mvn -B --file pom.xml package -Pcoverage -DtestFailureIgnore=true -Dgroups=${{ matrix.group }}
92-
93-
- name: 'Upload MZN results'
94-
uses: actions/upload-artifact@v3
95-
with:
96-
path: ${{ github.workspace }}/parsers/target/mzn_results.csv
104+
run: mvn --file pom.xml test -Pcoverage -DtestFailureIgnore=true -Dgroups=${{ matrix.group }}

0 commit comments

Comments
 (0)