ci: add static+dynamic analysis steps on push
Some checks failed
/ Static analysis (push) Failing after 46s
/ Dynamic analysis (push) Failing after 47s

This commit is contained in:
Marc 2024-07-27 15:03:58 -04:00
parent 21962ef589
commit 33acf2ec36
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 31 additions and 0 deletions

30
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,30 @@
on: [push]
jobs:
static-analysis:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Yaml formatting
id: yaml-format
run: pipx run yamllint .
continue-on-error: true
- name: Python formatting
id: python-format
run: pipx run black . --check
continue-on-error: true
- name: Job status
if: |
${{ steps.yaml-format.outcome != 'success' }} ||
${{ steps.python-format.outcome != 'success' }}
run: exit 1
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

View file

@ -1,3 +1,4 @@
---
name: Post build status to Discord name: Post build status to Discord
inputs: inputs: