Skip to content
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
9 changes: 9 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:

- name: "Run tox targets for ${{ matrix.python-version }}"
run: "tox"

- name: "Upload coverage to Codecov"
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
File renamed without changes.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
![chainfix](https://github.com/pydefi/chainfix/raw/main/docs/logo/chainfix_logo.png)

[![CI](https://github.com/pydefi/chainfix/actions/workflows/tox.yml/badge.svg)](https://github.com/pydefi/chainfix/actions/workflows/tox.yml)
[![codecov](https://codecov.io/gh/pydefi/chainfix/branch/main/graph/badge.svg)](https://codecov.io/gh/pydefi/chainfix)
[![Python Version](https://img.shields.io/badge/python-3.8%2B-blue)](https://github.com/pydefi/chainfix)
[![License](https://img.shields.io/github/license/pydefi/chainfix)](https://github.com/pydefi/chainfix/blob/main/LICENSE.txt)
[![License](https://img.shields.io/github/license/pydefi/chainfix)](https://github.com/pydefi/chainfix/blob/main/LICENSE)

Chainfix provides a way to represent numbers and perform simple math operations using fixed-point data types.

Expand Down
14 changes: 13 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dynamic = ["version"]
authors = [{name = "PyDefi Development Team", email = "MikesRND@users.noreply.github.com"}]
description = "Fixed-point data types for signal processing and blockchain applications"
readme = "README.md"
license = {file = "LICENSE.txt"}
license = {file = "LICENSE"}
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
Expand Down Expand Up @@ -40,3 +40,15 @@ where = ["src"]

[tool.setuptools.dynamic]
version = {attr = "chainfix.__version__"}

[tool.coverage.run]
source = ["src"]
branch = true

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ isolated_build = true
envlist = py38, py39, py310, py311, py312, py313

[testenv]
deps = pytest
commands = pytest
deps =
pytest
pytest-cov
commands = pytest --cov=chainfix --cov-report=xml --cov-report=term-missing

[gh-actions]
python =
Expand Down
Loading