Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added makefile to rules engine #91

Merged
merged 5 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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