From: Cezar Craciunoiu Date: Sat, 14 Oct 2023 09:02:59 +0000 (+0300) Subject: .github/workflows: Add python checks for support scripts X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=refs%2Fpull%2F1134%2Fhead;p=unikraft%2Funikraft.git .github/workflows: Add python checks for support scripts Signed-off-by: Cezar Craciunoiu --- diff --git a/.github/workflows/pychecks.yaml b/.github/workflows/pychecks.yaml new file mode 100644 index 000000000..ba60ef4c5 --- /dev/null +++ b/.github/workflows/pychecks.yaml @@ -0,0 +1,32 @@ +name: Python Checks + +on: + push: + branches: [staging, stable] + paths: + - 'support/scripts/**' + - '.github/workflows/pychecks.yaml' + + pull_request: + types: [opened, synchronize, reopened] + branches: [staging] + paths: + - 'support/scripts/**' + - '.github/workflows/pychecks.yaml' + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: black + uses: psf/black@stable + with: + src: support/scripts + + - name: ruff + uses: chartboost/ruff-action@v1 + if: success() || failure() + with: + src: support/scripts \ No newline at end of file