From 39052a091a95dfba6df6c796a16819a025a5fd8e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 23 May 2026 06:13:44 +0200 Subject: workflows/ci: linting using Black --- .github/workflows/ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d21b61a..39e3e94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,23 @@ on: workflow_dispatch: jobs: + lint: + runs-on: ubuntu-latest + name: Linting + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: '3.x' + - name: Run black + uses: psf/black@stable + with: + # > Please note that the --check flag is required so that the + # > workflow fails if Black finds files that need to be formatted. + options: --check --verbose --skip-string-normalization + test: strategy: matrix: @@ -25,7 +42,7 @@ jobs: run: make test publish_docker: - needs: [test] + needs: [lint, test] runs-on: ubuntu-latest name: 'Publish: Docker Hub' steps: -- cgit v1.3