Skip to content

action fix

action fix #4

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21' # PlantUML requires Java; set up a compatible Java version.
- name: Download latest PlantUML release
run: |
# Fetch the latest PlantUML release URL from GitHub API
curl -L -o plantuml.jar https://github.com/plantuml/plantuml/releases/download/v1.2024.7/plantuml-mit-1.2024.7.jar
- name: Create .env file for PlantUML
run: |
echo "PLANTUML_JAR=plantuml.jar" > .env
- name: Install dependencies
run: |
python -m pip install hatch
- name: Test with pytest
run: |
hatch run pytest