Skip to content

Commit

Permalink
Added makefile to rules engine (#91)
Browse files Browse the repository at this point in the history
* added makefile

* refactored github actions

* refactored github actions

* renamed make file
  • Loading branch information
alanisaac authored Oct 11, 2023
1 parent 24dfbf5 commit 8b54855
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/test-rules-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Check style
run: |
isort --check .
black --check .
make lint
mypy:
runs-on: ubuntu-latest
strategy:
Expand All @@ -40,7 +39,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Check typing
run: |
mypy .
make mypy
pytest:
runs-on: ubuntu-latest
strategy:
Expand All @@ -55,22 +54,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
pytest
pydocstyle:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up environment
uses: "./.github/actions/setup-rules-engine"
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
pydocstyle .
make test
build:
runs-on: ubuntu-latest
strategy:
Expand All @@ -85,5 +69,4 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Build wheel
run: |
pip install -q build
python -m build
make build
22 changes: 22 additions & 0 deletions rules-engine/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
black:
black --check .

isort:
isort --check .

pydocstyle:
pydocstyle .

lint: black isort pydocstyle

mypy:
mypy .

test:
pytest .

build:
pip install -q build
python -m build

all: lint mypy test build

0 comments on commit 8b54855

Please sign in to comment.