From c56f1c827ef559f821085e7141adde3fb81815c8 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Sat, 27 Jul 2024 15:03:58 -0400 Subject: [PATCH] ci: add static+dynamic analysis steps on push --- .forgejo/workflows/ci.yml | 21 +++++++++++++++++++++ action.yml | 1 + 2 files changed, 22 insertions(+) create mode 100644 .forgejo/workflows/ci.yml diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..b961897 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,21 @@ +on: [push] + +jobs: + static-analysis: + name: Static analysis + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Yaml formatting + run: pipx run yamllint . + - name: Python formatting + run: pipx run black . --check + dynamic-analysis: + name: Dynamic analysis + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: pip install -r ./requirements.txt + - name: Python linting + run: pipx run pylint **/*.py diff --git a/action.yml b/action.yml index de000d9..15191da 100644 --- a/action.yml +++ b/action.yml @@ -1,3 +1,4 @@ +--- name: Post build status to Discord inputs: