Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #33 from quantmind/master
Browse files Browse the repository at this point in the history
0.5.1
  • Loading branch information
lsbardel authored Jul 24, 2020
2 parents 58f69ce + de2efc3 commit de4e30e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
- name: install dataclasses
if: matrix.python-version == '3.6'
run: pip install dataclasses
- name: make validate
run: make validate
- name: run lint
run: make test-lint
- name: git info
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ test-lint: ## run linters check
./dev/run-black.sh --check

version: ## Display version
@python3 -c "import agiletoolkit; print(agiletoolkit.__version__)"
@python -c "import agiletoolkit; print(agiletoolkit.__version__)"

codecov:
codecov -t $(CODECOV_TOKEN)

release-github: ## new tag in github
@python agile.py git release --yes

release-pypi: ## release to pypi and github tag
release-pypi: ## release to pypi and github tag
@twine upload dist/* --username lsbardel --password $(PYPI_PASSWORD)

validate: ## validate version
@python agile.py git validate
2 changes: 1 addition & 1 deletion agiletoolkit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Agile toolkit for devops and repository management"""

__version__ = "0.5.0"
__version__ = "0.5.1"
5 changes: 3 additions & 2 deletions agiletoolkit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,6 @@ def gitrepo(root=None):
}


def version() -> str:
return sh("make version").strip().split()[-1]
def version():
version = sh("make -s version")
return version.strip().split()[-1]
2 changes: 0 additions & 2 deletions tests/test_git.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json
from unittest import mock

import pytest
from click.testing import CliRunner

from agiletoolkit.commands import start
Expand All @@ -17,7 +16,6 @@ def test_git():
assert result.output.startswith("Usage:")


@pytest.mark.skip("This fails in CI")
def test_git_validate():
runner = CliRunner()
with gitrepo("deploy"):
Expand Down

0 comments on commit de4e30e

Please sign in to comment.