From 5b80f44485fee84a7188d92afd3907bce7a9f5de Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 2 Jun 2023 15:48:35 +0100 Subject: [PATCH 1/6] ci: pytest workflow updated to fail on warnings. --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 320e3543..b25c7d17 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -45,4 +45,4 @@ jobs: pip freeze - name: Run tests - run: pytest --cov=pyerrors -vv + run: pytest --cov=pyerrors -vv -Werror From 4886197a03bb576d8f45d6189e1839c0fa9a1499 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 2 Jun 2023 15:49:42 +0100 Subject: [PATCH 2/6] docs: changes to pytest workflow documented in CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bfe66228..86267ae2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,7 +21,7 @@ Please add docstrings to any new function, class or method you implement. The do When implementing a new feature or fixing a bug please add meaningful tests to the files in the `tests` directory which cover the new code. For all pull requests tests are executed for the most recent python releases via ``` -pytest +pytest -vv -Werror pytest --nbmake examples/*.ipynb ``` requiring `pytest`, `pytest-cov`, `pytest-benchmark`, `hypothesis` and `nbmake`. To install the test dependencies one can run `pip install pyerrors[test]` From cdadbd0fad3be12736655a18a1c527b06c7a6918 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 2 Jun 2023 16:16:04 +0100 Subject: [PATCH 3/6] ci: windows removed from pytest workflow, mac-os python version bumped to 3.10 --- .github/workflows/pytest.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index b25c7d17..10f24fc4 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -19,9 +19,7 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11"] include: - os: macos-latest - python-version: 3.9 - - os: windows-latest - python-version: 3.9 + python-version: 3.10 steps: - name: Checkout source From 1b45e71e7983a8965a57584a0b8bdef0b01a3ee3 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 2 Jun 2023 16:17:28 +0100 Subject: [PATCH 4/6] ci: mac-os python version fixed. --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 10f24fc4..d4abcfc3 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -19,7 +19,7 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11"] include: - os: macos-latest - python-version: 3.10 + python-version: "3.10" steps: - name: Checkout source From f14042132f76f5e8b073b45a630f0b2b072bb068 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 2 Jun 2023 17:19:20 +0100 Subject: [PATCH 5/6] build: bumped dependency versions to the latest releases. The idea is to reduce the number of potential version combinations for easier debugging in the future. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f503358a..a9155101 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup(name='pyerrors', license="MIT", packages=find_packages(), python_requires='>=3.8.0', - install_requires=['numpy>=1.21', 'autograd>=1.5', 'numdifftools>=0.9.41', 'matplotlib>=3.5', 'scipy>=1.7', 'iminuit>=2.17', 'h5py>=3.8', 'lxml>=4.9', 'python-rapidjson>=1.9', 'pandas>=1.1'], + install_requires=['numpy>=1.24', 'autograd>=1.5', 'numdifftools>=0.9.41', 'matplotlib>=3.7', 'scipy>=1.10', 'iminuit>=2.21', 'h5py>=3.8', 'lxml>=4.9', 'python-rapidjson>=1.10', 'pandas>=2.0'], extras_require={'test': ['pytest', 'pytest-cov', 'pytest-benchmark', 'hypothesis']}, classifiers=[ 'Development Status :: 5 - Production/Stable', From 85f66d39cbc1832afd17f0104b94dc9b679fa092 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Thu, 22 Jun 2023 13:53:17 +0100 Subject: [PATCH 6/6] build: bumped autograd dependency to version 1.6 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a9155101..980ce3ab 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup(name='pyerrors', license="MIT", packages=find_packages(), python_requires='>=3.8.0', - install_requires=['numpy>=1.24', 'autograd>=1.5', 'numdifftools>=0.9.41', 'matplotlib>=3.7', 'scipy>=1.10', 'iminuit>=2.21', 'h5py>=3.8', 'lxml>=4.9', 'python-rapidjson>=1.10', 'pandas>=2.0'], + install_requires=['numpy>=1.24', 'autograd>=1.6', 'numdifftools>=0.9.41', 'matplotlib>=3.7', 'scipy>=1.10', 'iminuit>=2.21', 'h5py>=3.8', 'lxml>=4.9', 'python-rapidjson>=1.10', 'pandas>=2.0'], extras_require={'test': ['pytest', 'pytest-cov', 'pytest-benchmark', 'hypothesis']}, classifiers=[ 'Development Status :: 5 - Production/Stable',