summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-17 11:43:36 +0200
committerEgor Tensin <egor@tensin.name>2026-05-17 11:47:41 +0200
commit8ecd242936ed23a042e90429d3a056b44e37be01 (patch)
treec493e52ffa13c694e4cf54ee3b12daa6c3781414
parentv7.0.3 (diff)
downloadinfra-ansible-8ecd242936ed23a042e90429d3a056b44e37be01.tar.gz
infra-ansible-8ecd242936ed23a042e90429d3a056b44e37be01.zip
workflows: add CI workflow
-rw-r--r--.github/workflows/ci.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..497021c
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,24 @@
+name: CI
+
+on:
+ push:
+ 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:
+ # https://black.readthedocs.io/en/stable/integrations/github_actions.html#cli-options
+ # Please note that the --check flag is required so that the workflow fails if Black finds files that need to be formattedPlease note that the --check flag is required so that the workflow fails if Black finds files that need to be formatted.
+ # ^^^ I don't even have words for this.
+ options: --skip-string-normalization --check