From 3befe105b3d197139ab4ed23188a7292df12e875 Mon Sep 17 00:00:00 2001 From: Volodymyr Date: Sun, 12 Dec 2021 23:16:29 +0200 Subject: [PATCH] Add github workflows --- .github/workflows/code-assessment.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/code-assessment.yml diff --git a/.github/workflows/code-assessment.yml b/.github/workflows/code-assessment.yml new file mode 100644 index 0000000..4e4a8f8 --- /dev/null +++ b/.github/workflows/code-assessment.yml @@ -0,0 +1,23 @@ +name: Python source code assessment 🐍 +on: [push] +jobs: + build: + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: + - 3.7 + - 3.8 + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Static code analysis + run: | + pip install pip==20.2.0 + pip install -r requirements.txta + pip install -r requirements-dev.txt + ./analyse-source-code.sh