mirror of
https://github.com/qmk/qmk_cli.git
synced 2026-08-01 17:55:58 -04:00
49523f4e6d
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
42 lines
745 B
YAML
42 lines
745 B
YAML
name: CLI Lint
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
paths:
|
|
- 'qmk_cli/**'
|
|
- 'pyproject.toml'
|
|
- '.github/workflows/cli_lint.yml'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-slim
|
|
|
|
steps:
|
|
- uses: actions/setup-python@v7
|
|
with:
|
|
python-version: '3.9'
|
|
|
|
- name: Activate virtualenv
|
|
shell: bash
|
|
run: |
|
|
python -m venv .ci_venv
|
|
source .ci_venv/bin/activate
|
|
echo PATH=$PATH >> $GITHUB_ENV
|
|
|
|
- uses: actions/checkout@v7
|
|
|
|
- name: Install dependencies
|
|
run: python -m pip install --group dev
|
|
|
|
- name: Run lint
|
|
run: ruff check --no-cache --output-format=github
|
|
|
|
- name: Run format
|
|
run: yapf -r --diff qmk_cli
|