Skip to content

fix (CI): fix syntax error CI #59

fix (CI): fix syntax error CI

fix (CI): fix syntax error CI #59

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: language_tool_python CI
on:
push:
branches: [ master, test_pipeline ]
pull_request:
branches: [ master ]
jobs:
tests:
name: Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Clone repository
uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '25'
- name: Install dependencies
run: |
pip install setuptools wheel build pytest pytest-xdist
python -m build --sdist --wheel
pip install dist/*.whl
- name: Verify installed packages
run: |
pip list
- name: Import language_tool_python
run: |
printf "import language_tool_python\n" | python
- name: Test with pytest
run: |
pytest -vx --dist=loadfile -n auto
- name: Run additional tests in bash scripts for Ubuntu
run: |
bash tests/test_local.bash
bash tests/test_remote.bash
lint:
name: Lint with Ruff
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v5
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install Ruff
run: pip install ruff
- name: Run Ruff Linter
run: |
ruff check .
ruff format --check .