diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-23 06:13:44 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-23 06:13:44 +0200 |
| commit | 39052a091a95dfba6df6c796a16819a025a5fd8e (patch) | |
| tree | 8674ab50753d72006de01cc7a164e22b8d07c923 /.github/workflows/ci.yml | |
| parent | Merge pull request #6 from egor-tensin/dependabot/docker/python-3.14-alpine (diff) | |
| download | void-39052a091a95dfba6df6c796a16819a025a5fd8e.tar.gz void-39052a091a95dfba6df6c796a16819a025a5fd8e.zip | |
workflows/ci: linting using Black
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 19 |
1 files changed, 18 insertions, 1 deletions
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: |
