Update usage details #265
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: PR Validation | |
on: | |
pull_request: | |
jobs: | |
build-package: | |
name: Create Packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build Packages | |
uses: ./.github/actions/build-package | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Lint | |
uses: ./.github/actions/lint | |
python-tests: | |
name: Python Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python: ['3.7', '3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Python ${{ matrix.python }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Update pip, install wheel and nox | |
run: python -m pip install -U pip wheel nox | |
shell: bash | |
- name: Run tests | |
run: python -m nox --session tests | |
shell: bash | |
dotnet-tests: | |
name: Dotnet Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Dotnet Tool Chain setup | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Install Generator | |
run: python -m pip install -r ./requirements.txt | |
- name: Generate Test Data | |
run: python -m generator --plugin testdata | |
- name: Generate C# Code | |
run: python -m generator --plugin dotnet | |
- name: Dotnet Run Tests | |
run: dotnet test tests/dotnet/lsprotocol_tests/lsprotocol_tests.csproj | |
shell: bash | |
env: | |
LSP_TEST_DATA_PATH: ${{ github.workspace }}/packages/testdata | |
smoke-tests: | |
name: Smoke Tests (pygls) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python: ['3.7', '3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Checkout Pygls | |
uses: actions/checkout@v3 | |
with: | |
repository: openlawlibrary/pygls | |
path: smoke_tests | |
- name: Use Python ${{ matrix.python }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Update pip, install wheel | |
run: python -m pip install -U pip wheel | |
shell: bash | |
- name: Install pip pygls dependencies | |
run: python -m pip install typeguard mock pytest pytest-asyncio | |
shell: bash | |
- name: Install pip lsprotocol dependencies | |
run: python -m pip install -r ./packages/python/requirements.txt | |
shell: bash | |
- name: Install pygls | |
run: python -m pip install --no-deps ./smoke_tests | |
shell: bash | |
- name: Pip List | |
run: python -m pip list | |
shell: bash | |
- name: Run Tests | |
run: python -m pytest smoke_tests/tests | |
env: | |
PYTHONPATH: ./packages/python | |
shell: bash |