aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-23 06:13:44 +0200
committerEgor Tensin <egor@tensin.name>2026-05-23 06:13:44 +0200
commit39052a091a95dfba6df6c796a16819a025a5fd8e (patch)
tree8674ab50753d72006de01cc7a164e22b8d07c923 /.github
parentMerge pull request #6 from egor-tensin/dependabot/docker/python-3.14-alpine (diff)
downloadvoid-39052a091a95dfba6df6c796a16819a025a5fd8e.tar.gz
void-39052a091a95dfba6df6c796a16819a025a5fd8e.zip
workflows/ci: linting using Black
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml19
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: