Skip to content

fix (CI): removing useless venv in CI, adding names #58

fix (CI): removing useless venv in CI, adding names

fix (CI): removing useless venv in CI, adding names #58

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 21, Col: 7): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory, (Line: 62, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory, (Line: 65, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory, (Line: 70, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory, (Line: 73, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory
# 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 .