Skip to content

Commit 05c4b29

Browse files
committed
action for .env file and plantuml
1 parent cebb9a0 commit 05c4b29

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/python-app.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,22 @@ jobs:
2323
uses: actions/setup-python@v3
2424
with:
2525
python-version: "3.11"
26+
- name: Set up Java
27+
uses: actions/setup-java@v3
28+
with:
29+
java-version: '11' # PlantUML requires Java; set up a compatible Java version.
30+
31+
- name: Download latest PlantUML release
32+
run: |
33+
# Fetch the latest PlantUML release URL from GitHub API
34+
curl -L -o plantuml.jar https://github.com/plantuml/plantuml/releases/download/v1.2024.7/plantuml-mit-1.2024.7.jar
35+
- name: Create .env file for PlantUML
36+
run: |
37+
echo "PLANTUML_JAR=plantuml.jar" > .env
2638
- name: Install dependencies
2739
run: |
2840
python -m pip install hatch
2941
- name: Test with pytest
3042
run: |
3143
hatch run pytest
44+

0 commit comments

Comments
 (0)