diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..01916ba --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,23 @@ +on: [push] + +jobs: + static-analysis: + name: Static analysis + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Yaml formatting + run: pipx run yamllint . + continue-on-error: true + - name: Python formatting + run: pipx run black . --check + continue-on-error: true + 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: