|
4 | 4 | pull_request: |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - build-vsix: |
| 7 | + build-package: |
8 | 8 | name: Create Packages |
9 | 9 | runs-on: ubuntu-latest |
10 | 10 | steps: |
|
31 | 31 | fail-fast: false |
32 | 32 | matrix: |
33 | 33 | os: [ubuntu-latest, windows-latest] |
34 | | - python: ["3.7", "3.8", "3.9", "3.10", "3.11"] |
| 34 | + python: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
35 | 35 |
|
36 | 36 | steps: |
37 | 37 | - name: Checkout |
|
49 | 49 | - name: Run tests |
50 | 50 | run: python -m nox --session tests |
51 | 51 | shell: bash |
| 52 | + |
| 53 | + smoke-tests: |
| 54 | + name: Smoke Tests (pygls) |
| 55 | + runs-on: ${{ matrix.os }} |
| 56 | + strategy: |
| 57 | + fail-fast: false |
| 58 | + matrix: |
| 59 | + os: [ubuntu-latest, windows-latest] |
| 60 | + python: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
| 61 | + |
| 62 | + steps: |
| 63 | + - name: Checkout |
| 64 | + uses: actions/checkout@v3 |
| 65 | + |
| 66 | + - name: Checkout Pygls |
| 67 | + uses: actions/checkout@v3 |
| 68 | + with: |
| 69 | + repository: openlawlibrary/pygls |
| 70 | + path: smoke_tests |
| 71 | + |
| 72 | + - name: Use Python ${{ matrix.python }} |
| 73 | + uses: actions/setup-python@v4 |
| 74 | + with: |
| 75 | + python-version: ${{ matrix.python }} |
| 76 | + |
| 77 | + - name: Update pip, install wheel |
| 78 | + run: python -m pip install -U pip wheel |
| 79 | + shell: bash |
| 80 | + |
| 81 | + - name: Install pip pygls dependencies |
| 82 | + run: python -m pip install typeguard mock pytest pytest-asyncio |
| 83 | + shell: bash |
| 84 | + |
| 85 | + - name: Install pip lsprotocol dependencies |
| 86 | + run: python -m pip install -r ./packages/python/requirements.txt |
| 87 | + shell: bash |
| 88 | + |
| 89 | + - name: Pip List |
| 90 | + run: python -m pip list |
| 91 | + shell: bash |
| 92 | + |
| 93 | + - name: Run Tests |
| 94 | + run: python -m pytest smoke_tests/tests |
| 95 | + env: |
| 96 | + PYTHONPATH: ./packages/python |
| 97 | + shell: bash |
0 commit comments