Skip to content

Commit 86a2102

Browse files
committed
lint-and-test: WIP.
1 parent eeec7bf commit 86a2102

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/lint-and-test.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ jobs:
101101
python-version: ${{ env.LINTING_PYTHON_VERSION }}
102102
cache: 'pip'
103103
cache-dependency-path: 'pyproject.toml'
104-
- name: Install with linting tools
105-
run: pip install .[linting]
106-
- name: Check spelling
107-
run: ./tools/run-spellcheck
104+
- name: Lint
105+
run: |
106+
make
107+
. zt_venv/bin/activate
108+
./tools/run-spellcheck
108109
109110
hotkeys:
110111
runs-on: ubuntu-latest
@@ -118,10 +119,11 @@ jobs:
118119
python-version: ${{ env.LINTING_PYTHON_VERSION }}
119120
cache: 'pip'
120121
cache-dependency-path: 'pyproject.toml'
121-
- name: Minimal install
122-
run: pip install .
123-
- name: Run lint-hotkeys
124-
run: ./tools/lint-hotkeys
122+
- name: Lint
123+
run: |
124+
make
125+
. zt_venv/bin/activate
126+
./tools/lint-hotkeys
125127
126128
docstrings:
127129
runs-on: ubuntu-latest
@@ -135,10 +137,11 @@ jobs:
135137
python-version: ${{ env.LINTING_PYTHON_VERSION }}
136138
cache: 'pip'
137139
cache-dependency-path: 'pyproject.toml'
138-
- name: Minimal install
139-
run: pip install .
140-
- name: Run lint-docstring
141-
run: ./tools/lint-docstring
140+
- name: Lint
141+
run: |
142+
make
143+
. zt_venv/bin/activate
144+
./tools/lint-docstring
142145
143146
gitlint:
144147
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)