Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Dec 26, 2023
1 parent f4f2ff5 commit 451a1c9
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

0 comments on commit 451a1c9

Please sign in to comment.