2023-02-02 12:55:37 +00:00
|
|
|
name: pyright
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: ["3.9"]
|
2023-07-11 12:46:40 +02:00
|
|
|
poetry-version: ["1.5.1"]
|
2023-02-02 12:55:37 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
|
|
|
uses: abatilo/actions-poetry@v2
|
|
|
|
with:
|
|
|
|
poetry-version: ${{ matrix.poetry-version }}
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: "poetry"
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2023-07-11 12:46:40 +02:00
|
|
|
poetry install --no-root
|
2023-02-02 12:55:37 +00:00
|
|
|
npm install
|
|
|
|
- name: Run tests
|
|
|
|
run: make pyright
|