diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9da617e28..fe6b617bb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,14 +29,10 @@ jobs: which pip python --version pip --version - - name: Create and activate venv + + - name: Create venv run: | python -m venv lint_py_imports - source ./lint_py_imports/bin/activate - - name: Install JupyterLab - run: pip install jupyterlab~=4.0 - - name: Install `import-linter` - run: pip install import-linter~=1.12.1 - name: Echo environment details run: | @@ -45,12 +41,29 @@ jobs: which jlpm python --version pip --version - ls /usr/lib/python3/dist-packages/attr - cat /usr/lib/python3/dist-packages/attr/__init__.py + + - name: Echo environment details + run: | + source lint_py_imports/bin/activate + which python + which pip + which jlpm + python --version + pip --version + + - name: Install job dependencies + run: | + source ./lint_py_imports/bin/activate + pip install jupyterlab~=4.0 + pip install `import-linter` - name: Install Jupyter AI packages from source run: | + source ./lint_py_imports/bin/activate jlpm install jlpm install-from-src + - name: Lint Python imports - run: lint-imports + run: | + source ./lint_py_imports/bin/activate + jlpm lint-imports