Skip to content

Commit

Permalink
Merge pull request #3 from TheCleric/Fork-to-new-project
Browse files Browse the repository at this point in the history
In hindsight, don't pull version for toml file
  • Loading branch information
TheCleric authored Aug 22, 2021
2 parents d322ea8 + 1046c26 commit 620cada
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion coverage_lcov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>", "Chay Choong <[email protected]>"]
repository = "https://github.com/TheCleric/coverage-lcov"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_coverage_lcov.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == "0.2.0"
assert __version__ == "0.2.1"

0 comments on commit 620cada

Please sign in to comment.