From 9f765a4325208cf1ef792886c40803b2f1b29f87 Mon Sep 17 00:00:00 2001 From: Nastiiasaenko <54864655+Nastiiasaenko@users.noreply.github.com> Date: Tue, 12 Dec 2023 21:22:20 -0500 Subject: [PATCH] Update Makefile --- Makefile | 43 ++++++++++++++++--------------------------- 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/Makefile b/Makefile index 4b38287..7286c33 100644 --- a/Makefile +++ b/Makefile @@ -1,29 +1,18 @@ -#install: -# pip install --upgrade pip &&\ -# pip install -r requirements.txt -# -name: Python CI +install: + pip install --upgrade pip &&\ + pip install -r requirements.txt -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - workflow_dispatch: +test: + python -m pytest -vv test_*.py + +format: + black *.py + +lint: + pylint --disable=R,C --ignore-patterns=test_.*?py *.py + +all: install lint format test + +docker: + pylint --disable=R,C --ignore-patterns=test_.*?py *.py -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Install build dependencies - run: sudo apt-get install -y build-essential gcc - - name: Install packages - run: make install - - name: Format - run: make format - - name: Lint - run: make lint - - name: Test - run: make test -