Add PlantUML VS Code extension scaffold #324
Workflow file for this run
This file contains hidden or 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, summer] | |
| pull_request: | |
| branches: [main, summer] | |
| 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: Install Playwright browsers | |
| run: | | |
| uv run playwright install chromium --with-deps | |
| - name: Test with pytest | |
| run: | | |
| uv run pytest |