Skip to content

Commit 70fdfe5

Browse files
committed
Specify required distribution for setup-java action
Also: - Update Java version to 25 - Quote java-version and python-version strings - Cache maven and pip dependencies
1 parent c693eb8 commit 70fdfe5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/maven.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@ jobs:
99
- name: Set up Python
1010
uses: actions/setup-python@v6
1111
with:
12-
python-version: 3.9
12+
python-version: '3.9'
13+
cache: 'pip'
1314
- name: Install Python dependencies
1415
run: |
1516
python -m pip install --upgrade pip
16-
pip install -r requirements.txt -r dev-requirements.txt
17+
python -m pip install -r requirements.txt -r dev-requirements.txt
1718
- name: Run Python tests to generate workflow examples.
1819
run: |
1920
pytest tests/test_lint.py tests/test_cytoscape.py
2021
- name: Set up JDK
2122
uses: actions/setup-java@v5
2223
with:
23-
java-version: 11.0.x
24+
distribution: 'temurin'
25+
java-version: '25'
26+
cache: 'maven'
2427
- name: Run Java maven (mvn) tests for generated workflow examples.
2528
run: |
2629
cd java

0 commit comments

Comments
 (0)