From 3967210594e3e9d08e085d0a66137ebae39d1cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wellington=20Jos=C3=A9=20Leite=20da=20Silva?= Date: Mon, 9 Feb 2026 18:46:27 -0300 Subject: [PATCH 1/7] Update README to remove mpmath installation steps Removed installation instructions for mpmath library. --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 173db7f..ced6fc5 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,6 @@ Using ratio and integral tests we evaluate series that pass these tests with con ## Instalation -Make sure you have the mpmath library installed: - -```bash -pip install mpmath -``` - To install the package, run the following command: ```bash From cbec4896efd9892c712268c6878994178842386d Mon Sep 17 00:00:00 2001 From: Wellington Silva Date: Mon, 9 Feb 2026 19:31:41 -0300 Subject: [PATCH 2/7] Update python version --- .github/workflows/test_infsum.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_infsum.yml b/.github/workflows/test_infsum.yml index 989c965..8d00184 100644 --- a/.github/workflows/test_infsum.yml +++ b/.github/workflows/test_infsum.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] steps: - name: Checkout code From 9628b9437bf57a2b8977c596c7bdf1c3cf691dcc Mon Sep 17 00:00:00 2001 From: Wellington Silva Date: Tue, 10 Feb 2026 10:24:17 -0300 Subject: [PATCH 3/7] Update REAME --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index ced6fc5..75e49aa 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ -------------------------------------------------------------------------------- ![PyPI](https://img.shields.io/pypi/v/InfSumPy?label=pypi%20package) -![versions](https://img.shields.io/pypi/pyversions/pybadges.svg) ![example workflow](https://github.com/wellington36/InfSumPy/actions/workflows/test_infsum.yml/badge.svg) InfSumPy is a Python package that evaluates infinite positive sums with guaranteed error. From c2e1d2a0d9aec1449d87258f4cad28ecad30dcb8 Mon Sep 17 00:00:00 2001 From: Wellington Silva Date: Tue, 10 Feb 2026 10:35:11 -0300 Subject: [PATCH 4/7] Add coverage --- .github/workflows/cov_infsum.yml | 11 +++++++++ coverage | 42 ++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/workflows/cov_infsum.yml create mode 100644 coverage diff --git a/.github/workflows/cov_infsum.yml b/.github/workflows/cov_infsum.yml new file mode 100644 index 0000000..fc4f870 --- /dev/null +++ b/.github/workflows/cov_infsum.yml @@ -0,0 +1,11 @@ +- name: Run tests with coverage + run: | + pip install coveralls + coverage run -m pytest tests.py --cov=infsumpy + coverage xml + +- name: Upload coverage to Coveralls + uses: coverallsapp/github-action@v2 + with: + format: cobertura + file: coverage.xml \ No newline at end of file diff --git a/coverage b/coverage new file mode 100644 index 0000000..99bf494 --- /dev/null +++ b/coverage @@ -0,0 +1,42 @@ +============================= test session starts ============================== +platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 +rootdir: /home/wellington/Documents/InfSumPy +plugins: cov-7.0.0, anyio-4.12.1 +collected 0 items + +============================ no tests ran in 0.01s ============================= +self._collectors: + + : /home/wellington/.local/bin/coverage:7 + main : /home/wellington/.local/lib/python3.14/site-packages/coverage/cmdline.py:1163 + command_line : /home/wellington/.local/lib/python3.14/site-packages/coverage/cmdline.py:853 + do_run : /home/wellington/.local/lib/python3.14/site-packages/coverage/cmdline.py:1039 + start : /home/wellington/.local/lib/python3.14/site-packages/coverage/control.py:702 + _init_for_start : /home/wellington/.local/lib/python3.14/site-packages/coverage/control.py:601 + __init__ : /home/wellington/.local/lib/python3.14/site-packages/coverage/collector.py:119 + + : /home/wellington/.local/bin/coverage:7 + main : /home/wellington/.local/lib/python3.14/site-packages/coverage/cmdline.py:1163 + command_line : /home/wellington/.local/lib/python3.14/site-packages/coverage/cmdline.py:853 + do_run : /home/wellington/.local/lib/python3.14/site-packages/coverage/cmdline.py:1042 + run : /home/wellington/.local/lib/python3.14/site-packages/coverage/execfile.py:213 + : /home/wellington/.local/lib/python3.14/site-packages/pytest/__main__.py:9 + console_main : /home/wellington/.local/lib/python3.14/site-packages/_pytest/config/__init__.py:223 + main : /home/wellington/.local/lib/python3.14/site-packages/_pytest/config/__init__.py:193 + _prepareconfig : /home/wellington/.local/lib/python3.14/site-packages/_pytest/config/__init__.py:361 + __call__ : /home/wellington/.local/lib/python3.14/site-packages/pluggy/_hooks.py:512 + _hookexec : /home/wellington/.local/lib/python3.14/site-packages/pluggy/_manager.py:120 + _multicall : /home/wellington/.local/lib/python3.14/site-packages/pluggy/_callers.py:121 + pytest_cmdline_parse : /home/wellington/.local/lib/python3.14/site-packages/_pytest/config/__init__.py:1186 + parse : /home/wellington/.local/lib/python3.14/site-packages/_pytest/config/__init__.py:1556 + __call__ : /home/wellington/.local/lib/python3.14/site-packages/pluggy/_hooks.py:512 + _hookexec : /home/wellington/.local/lib/python3.14/site-packages/pluggy/_manager.py:120 + _multicall : /home/wellington/.local/lib/python3.14/site-packages/pluggy/_callers.py:121 + pytest_load_initial_conftests : /home/wellington/.local/lib/python3.14/site-packages/pytest_cov/plugin.py:200 + __init__ : /home/wellington/.local/lib/python3.14/site-packages/pytest_cov/plugin.py:250 + start : /home/wellington/.local/lib/python3.14/site-packages/pytest_cov/plugin.py:263 + ensure_topdir_wrapper : /home/wellington/.local/lib/python3.14/site-packages/pytest_cov/engine.py:55 + start : /home/wellington/.local/lib/python3.14/site-packages/pytest_cov/engine.py:284 + start : /home/wellington/.local/lib/python3.14/site-packages/coverage/control.py:702 + _init_for_start : /home/wellington/.local/lib/python3.14/site-packages/coverage/control.py:601 + __init__ : /home/wellington/.local/lib/python3.14/site-packages/coverage/collector.py:119 From abdd088e2e12d0410f788520e9598bda653ac997 Mon Sep 17 00:00:00 2001 From: Wellington Silva Date: Tue, 10 Feb 2026 16:56:40 -0300 Subject: [PATCH 5/7] Change tests --- .github/workflows/cov_infsum.yml | 11 --------- .github/workflows/test_infsum.yml | 39 ------------------------------ .github/workflows/tests.yml | 40 +++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 50 deletions(-) delete mode 100644 .github/workflows/cov_infsum.yml delete mode 100644 .github/workflows/test_infsum.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/cov_infsum.yml b/.github/workflows/cov_infsum.yml deleted file mode 100644 index fc4f870..0000000 --- a/.github/workflows/cov_infsum.yml +++ /dev/null @@ -1,11 +0,0 @@ -- name: Run tests with coverage - run: | - pip install coveralls - coverage run -m pytest tests.py --cov=infsumpy - coverage xml - -- name: Upload coverage to Coveralls - uses: coverallsapp/github-action@v2 - with: - format: cobertura - file: coverage.xml \ No newline at end of file diff --git a/.github/workflows/test_infsum.yml b/.github/workflows/test_infsum.yml deleted file mode 100644 index 8d00184..0000000 --- a/.github/workflows/test_infsum.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: main code - -on: - push: - branches: - - '**' - pull_request: - branches: - - '**' - -jobs: - test: - runs-on: ubuntu-latest - defaults: - run: - working-directory: ${{ github.workspace }} - - strategy: - matrix: - python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - pip install --upgrade pip - pip install pytest - pip install -r requirements.txt - - - name: Run tests - run: | - pytest tests.py diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..e73c9da --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,40 @@ +name: Tests and Coverage + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pytest pytest-cov + + - name: Run tests with coverage + run: | + pytest tests.py --cov=infsumpy --cov-report=xml + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + files: coverage.xml + flags: unittests + name: codecov-coverage + From d140257e00e26c15c25e112ace785fa7348f8840 Mon Sep 17 00:00:00 2001 From: Wellington Silva Date: Tue, 10 Feb 2026 16:57:45 -0300 Subject: [PATCH 6/7] Add badge in README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 75e49aa..828b4dc 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ -------------------------------------------------------------------------------- ![PyPI](https://img.shields.io/pypi/v/InfSumPy?label=pypi%20package) +[![codecov](https://codecov.io/github/wellington36/InfSumPy/graph/badge.svg?token=DHUQAFHCDL)](https://codecov.io/github/wellington36/InfSumPy) ![example workflow](https://github.com/wellington36/InfSumPy/actions/workflows/test_infsum.yml/badge.svg) InfSumPy is a Python package that evaluates infinite positive sums with guaranteed error. From 6dfd97de335beaf2b6c36b277473b5169cd447ee Mon Sep 17 00:00:00 2001 From: Wellington Silva Date: Tue, 10 Feb 2026 17:06:37 -0300 Subject: [PATCH 7/7] Add token --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e73c9da..8e5c459 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,6 +34,7 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml flags: unittests name: codecov-coverage