Skip to content

Commit

Permalink
add makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
  • Loading branch information
Lawouach committed Dec 7, 2022
1 parent 0902549 commit ba95c3f
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 122 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Build the chaosreliably package
- name: Build the package
run : |
make build
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Install dependencies
run: |
make install-dev
- name: Lint chaosreliably
- name: Lint
run: |
make lint
Expand Down
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.PHONY: install
install:
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt

.PHONY: install-dev
install-dev: install
pip install -r requirements-dev.txt
python setup.py develop

.PHONY: build
build:
python setup.py build

.PHONY: lint
lint:
flake8 chaosreport/
isort --check-only --profile black chaosreport/
black --check --diff --line-length=80 chaosreport/

.PHONY: format
format:
isort --profile black chaosreport/
black --line-length=80 chaosreport/

.PHONY: tests
tests:
pytest
Loading

0 comments on commit ba95c3f

Please sign in to comment.