Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Nastiiasaenko authored Dec 13, 2023
1 parent c3b6382 commit 9f765a4
Showing 1 changed file with 16 additions and 27 deletions.
43 changes: 16 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9f765a4

Please sign in to comment.