Skip to content

Commit aaf4810

Browse files
srdeotarseneiljp
authored andcommitted
lint-and-test: Add generate_hotkeys linting to GitHub Actions.
Everytime a PR is updated or created, GH Actions will lint for hotkeys as well. Updated to match recent changes to actions, naming and minize steps by neiljp.
1 parent 4c8c1f5 commit aaf4810

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,23 @@ jobs:
8383
- name: Check code & tests meet black standards
8484
run: black --check zulipterminal/ tests/ setup.py `tools/python_tools.py`
8585

86+
hotkeys:
87+
runs-on: ubuntu-latest
88+
name: Lint - Hotkeys linting & docs sync check
89+
steps:
90+
- uses: actions/checkout@v3
91+
with:
92+
persist-credentials: false
93+
- uses: actions/setup-python@v4
94+
with:
95+
python-version: 3.6
96+
cache: 'pip'
97+
cache-dependency-path: 'setup.py'
98+
- name: Minimal install
99+
run: pip install .
100+
- name: Run generate_hotkeys
101+
run: ./tools/generate_hotkeys.py --check-only
102+
86103
pytest:
87104
strategy:
88105
# Not failing fast allows all matrix jobs to try & finish even if one fails early

0 commit comments

Comments
 (0)