summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Kunz <git@monoton.space>2022-06-26 16:10:05 +0200
committerNiklas Kunz <git@monoton.space>2022-06-26 16:10:05 +0200
commit610ffe652d7d1f9963efed5aa9b0c59177ff45e2 (patch)
treeaa073e5a3a99ef88d9af89ad0e69c856ddf30cc2
parenteb27ab4e4950005ee2fc1063aabe00ecaa66712b (diff)
Add code checking step using black to workflow
-rw-r--r--.github/workflows/ci.yml (renamed from .github/workflows/test.yml)18
1 files changed, 16 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/ci.yml
index 2a9b9ba..e3adc8f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/ci.yml
@@ -1,4 +1,4 @@
-name: test
+name: ci
on:
push:
@@ -7,8 +7,22 @@ on:
branches: [ "master" ]
jobs:
- build:
+ check:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python
+ uses: actions/setup-python@v3
+ with:
+ python-version: '3.x'
+ - name: Install black
+ run: pip install black
+ - name: Check code
+ run: black bmaptools/* tests/* --check
+ test:
+ needs: check
runs-on: ubuntu-latest
strategy:
fail-fast: false