python >= 3.8 is required #294
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: Testing | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Select Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
architecture: x64 | |
- name: Install Dependencies | |
run: | | |
python -m pip install -U pip | |
python -m pip install wheel | |
python -m pip install poetry | |
poetry install | |
- name: Run black formatter check | |
run: poetry run black --extend-exclude test_data --check --diff jedi_language_server tests | |
- name: Run docformatter check | |
run: poetry run docformatter --exclude test_data --check --recursive jedi_language_server tests | |
- name: Run isort check | |
run: poetry run isort --check jedi_language_server tests/lsp_tests tests/lsp_test_client | |
- name: Run mypy check | |
run: poetry run mypy jedi_language_server | |
- name: Run pylint | |
run: poetry run pylint jedi_language_server tests | |
tests: | |
needs: [lint] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup, Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Install Dependencies | |
run: | | |
python -m pip install -U pip | |
python -m pip install wheel | |
python -m pip install poetry | |
poetry install | |
- name: Run Tests | |
run: poetry run pytest tests | |
coverage: | |
needs: [lint] | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Select Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
architecture: x64 | |
- name: Install Dependencies | |
run: | | |
python -m pip install -U pip | |
python -m pip install wheel | |
python -m pip install poetry | |
poetry install | |
- name: Run Coverage | |
env: | |
WITH_COVERAGE: true | |
run: poetry run pytest --cov=jedi_language_server --cov-report=term-missing tests |