refactor: makes internal utilities private (#190) #157
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: language_tool_python CI | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| timeout-minutes: 20 | |
| name: Test on ${{ matrix.os }} Python ${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Execute tests on python 3.10-3.15 on ubuntu | |
| # and python 3.14 on macOS and windows | |
| include: | |
| - os: ubuntu-26.04 | |
| python-version: "3.10" | |
| - os: ubuntu-26.04 | |
| python-version: "3.11" | |
| - os: ubuntu-26.04 | |
| python-version: "3.12" | |
| - os: ubuntu-26.04 | |
| python-version: "3.13" | |
| - os: ubuntu-26.04 | |
| python-version: "3.14" | |
| - os: ubuntu-26.04 | |
| python-version: "3.15.0-beta.2" | |
| - os: macos-26 | |
| python-version: "3.14" | |
| - os: windows-2025 | |
| python-version: "3.14" | |
| steps: | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # 8.2.0 | |
| - name: Set up JDK 26 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # 5.2.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '26' | |
| - name: Clone repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Test with pytest | |
| run: | | |
| uv run --python ${{ matrix.python-version }} --group tests --locked pytest | |
| lint: | |
| timeout-minutes: 10 | |
| name: Lint with Ruff | |
| runs-on: ubuntu-26.04 | |
| steps: | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # 8.2.0 | |
| - name: Clone repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Run Ruff Linter | |
| run: | | |
| make ruff-check | |
| type_check: | |
| timeout-minutes: 10 | |
| name: Type Check with Mypy | |
| runs-on: ubuntu-26.04 | |
| steps: | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # 8.2.0 | |
| - name: Clone repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Run Mypy Type Checker | |
| run: | | |
| make mypy-check |