Skip to content

Commit

Permalink
Create Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Nov 26, 2020
1 parent 73e7e85 commit 86d1fd9
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 24 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -17,13 +17,5 @@ jobs:
uses: abatilo/actions-poetry@v2.1.0
with:
poetry-version: 1.1.2
- name: Install dependencies
run: poetry install
- name: Lint with flake8
run: poetry run flake8 . --count --show-source --statistics --max-line-length=88 --extend-ignore=E203
- name: Format with black and isort
run: |
poetry run black . --check
poetry run isort . --profile=black
- name: Test with pytest
run: poetry run pytest
- name: Run tests
run: make tests
12 changes: 1 addition & 11 deletions .github/workflows/publish.yml
Expand Up @@ -15,15 +15,5 @@ jobs:
uses: abatilo/actions-poetry@v2.1.0
with:
poetry-version: 1.1.2
- name: Install dependencies
run: poetry install
- name: Lint with flake8
run: poetry run flake8 . --count --show-source --statistics --max-line-length=88 --extend-ignore=E203
- name: Format with black and isort
run: |
poetry run black . --check
poetry run isort . --profile=black
- name: Test with pytest
run: poetry run pytest
- name: Publish
run: poetry run poetry publish -u ${{ secrets.PyPIUsername }} -p ${{ secrets.PyPIPassword }} --build
run: make publish u=${{ secrets.PyPIUsername }} p=${{ secrets.PyPIPassword }}
11 changes: 11 additions & 0 deletions Makefile
@@ -0,0 +1,11 @@
install:
poetry install

tests: install
poetry run flake8 . --count --show-source --statistics --max-line-length=88 --extend-ignore=E203
poetry run black . --check
poetry run isort . --profile=black
poetry run pytest

publish: tests
poetry run poetry publish --build -u=${u} -p=${p}
2 changes: 1 addition & 1 deletion inferfuzzy/__init__.py
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.1.1"
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "inferfuzzy"
version = "0.1.0"
version = "0.1.1"
description = "Fuzzy Inference System in Python"
authors = ["leynier <leynier41@gmail.com>"]
homepage = "https://github.com/leynier/inferfuzzy"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_inferfuzzy.py
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == "0.1.0"
assert __version__ == "0.1.1"

0 comments on commit 86d1fd9

Please sign in to comment.