From 1046c26a8320b1decebf5811f744da7faf11b456 Mon Sep 17 00:00:00 2001 From: Adam Weeden Date: Sun, 22 Aug 2021 12:38:41 -0400 Subject: [PATCH] In hindsight, don't pull version for toml file --- .github/workflows/release.yml | 16 ++++++++-------- coverage_lcov/__init__.py | 3 ++- pyproject.toml | 2 +- tests/test_coverage_lcov.py | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f5862cd..a2b1480 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,14 @@ jobs: shell: bash run: poetry build + - name: Install dependencies + shell: bash + run: poetry install + + - name: Run pytest + shell: bash + run: poetry run python -m pytest -p no:sugar -q tests/ + - name: Check Version id: check-version shell: bash @@ -51,14 +59,6 @@ jobs: draft: false prerelease: steps.check-version.outputs.prerelease == 'true' - - name: Install dependencies - shell: bash - run: poetry install - - - name: Run pytest - shell: bash - run: poetry run python -m pytest -p no:sugar -q tests/ - - name: Publish to PyPI env: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} diff --git a/coverage_lcov/__init__.py b/coverage_lcov/__init__.py index ddee119..588d86a 100644 --- a/coverage_lcov/__init__.py +++ b/coverage_lcov/__init__.py @@ -2,4 +2,5 @@ import toml -__version__ = toml.load(os.path.join(os.path.dirname(__file__), "..", "pyproject.toml"))["tool"]["poetry"]["version"] +# __version__ = toml.load(os.path.join(os.path.dirname(__file__), "..", "pyproject.toml"))["tool"]["poetry"]["version"] +__version__ = "0.2.1" diff --git a/pyproject.toml b/pyproject.toml index e021c1b..c82b719 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "coverage-lcov" -version = "0.2.0" +version = "0.2.1" description = "A simple .coverage to LCOV converter" authors = ["Adam Weeden ", "Chay Choong "] repository = "https://github.com/TheCleric/coverage-lcov" diff --git a/tests/test_coverage_lcov.py b/tests/test_coverage_lcov.py index b827ea7..7c22d73 100644 --- a/tests/test_coverage_lcov.py +++ b/tests/test_coverage_lcov.py @@ -2,4 +2,4 @@ def test_version(): - assert __version__ == "0.2.0" + assert __version__ == "0.2.1"