Skip to content

Install requirements in the github machine for pyright to work #6

Install requirements in the github machine for pyright to work

Install requirements in the github machine for pyright to work #6

Workflow file for this run

name: Linting
on: push
jobs:
python-lint:
runs-on: ubuntu-latest
container: ghcr.io/pulp-platform/pulp-nnx:main-test
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
src: "test"
# Needed by pyright
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- run: |
pip install -r test/requirements-pip.txt
- uses: jakebailey/pyright-action@v2
with:
working-directory: test
- uses: isort/isort-action@v1
with:
sort-paths: "test"