test github workflow with multiple python versions resolves #11 #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python application | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- 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 uv==0.4.9 | |
- name: Test with pytest | |
run: | | |
uv run pytest |