Commit graph

43 commits

Author SHA1 Message Date
dependabot[bot]
163baf25bf
[ci]: Bump the actions group with 5 updates (#291)
Bumps the actions group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/setup-python](https://github.com/actions/setup-python) | `5` | `7` |
| [actions/checkout](https://github.com/actions/checkout) | `6` | `7` |
| [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `5` | `7` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4` | `7` |
| [actions/download-artifact](https://github.com/actions/download-artifact) | `4` | `8` |


Updates `actions/setup-python` from 5 to 7
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v7)

Updates `actions/checkout` from 6 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

Updates `astral-sh/setup-uv` from 5 to 7
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/v5...v7)

Updates `actions/upload-artifact` from 4 to 7
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

Updates `actions/download-artifact` from 4 to 8
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v8)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: astral-sh/setup-uv
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-27 22:20:51 +02:00
Fabian Joswig
22d2daba30
[ci] Update action versions, add permissions and dependebot, speed up examples (#290) 2026-07-27 22:17:19 +02:00
Fabian Joswig
e72949b69b
[chore] Stricter ruff rules (#282)
* [chore] Stricter ruff rules

* [chore] Furture lint rules and removal of flake8

* [ci] Bump github action versions

* [chore] Add additional test coverage

* Revert RNG switch to np.random.default_rng()

Restore use of the global np.random state in pseudo_Obs (misc.py) and the
prior id generation (fits.py), keeping seed behavior unchanged. The switch
to a module-local generator is out of scope for this lint-focused PR.

* Silence NPY002 on intentional legacy np.random calls

The RNG migration was reverted to keep np.random.seed() behavior, so add
per-line noqa: NPY002 on the three legacy np.random calls instead of the
Generator API.

* [Fix] Fix exception messages
2026-07-06 11:04:28 +02:00
Fabian Joswig
229ea45ac7
[feat] Relax strict autograd.numpy requirement (#285)
* [feat] Relax strict autograd.numpy requirement

* [Fix] Re-impose --Werror for python 3.14 runs after new autograd release
2026-06-30 08:55:49 +02:00
Fabian Joswig
b28c2f0b6f
[Fix] Migrate to odrpack because of scipy.odr deprecation (#279)
* [Fix] Migrate to odrpack because of scipy.odr deprecation in recent
release

* [Fix] Fix behaviour for rank deficient fits. Add test

* [Fix] Relax test_merge_obs tolerance to machine epsilon and update ODR docstring to reference odrpack

* [ci] Re-add -Werror to pytest workflow

* [Fix] Handle platform-dependent rank-deficient warning in ODR tests

* [Fix] Improve rank-deficient detection and bump odrpack to >=0.5

Fix incorrect ODRPACK95 info code parsing: rank deficiency is encoded
in the tens digit (info // 10 % 10), not the hundreds digit. Add
irank and inv_condnum to the warning message for diagnostics.
2026-04-19 19:50:36 +02:00
Fabian Joswig
23d2629801
[CI] Run pytest workflows once per week (#280) 2026-03-29 20:43:59 +02:00
Fabian Joswig
682d23604d
[Fix] Pandas 3 string type changes (#278)
* [Fix] Pandas 3 string type handling

* [ci] Temporarily remove WError because of scipy deprecation

* [Fix] Address edge cases in _deserialize_df

- Use pd.isna() instead of truthiness check for gzip null guard, fixing
  incorrect behavior when null is np.nan (which is truthy in Python)
- Add bounds check to while loop to prevent IndexError when all non-null
  values are empty strings converted to None by regex replace

* [Fix] Address edge cases in _deserialize_df and add string dtype tests

- Guard against IndexError on empty DataFrames and all-null columns
- Use is not None instead of pd.isna() for Obs objects in auto_gamma
- Add tests for string dtype columns (with/without None, CSV and SQL)
- Add test for empty DataFrame deserialization

* [Fix] Avoid skipping NA-to-None conversion and guard auto_gamma against None lists

- Replace continue with conditional to preserve NA-to-None conversion for all-null columns
- Guard auto_gamma list lambda against None values to prevent TypeError
- Add tests for all-empty-string columns and Obs lists with None + auto_gamma
2026-03-29 18:46:15 +02:00
Fabian Joswig
85ae9d7563
[chore] Remove support for python 3.9 and bump python versions in runners (#273) 2025-10-19 12:59:20 +02:00
Fabian Joswig
a600a69bb9
[ci] Add python 3.14 runners for pytest workflow (#270)
* [ci] Add python 3.14 runners for pytest workflow

* [ci] Deactivate -Werror option in pytest workflow to fix python 3.14
runner

* [ci] Run tests with Werror for all python versions but for 3.14
2025-10-19 12:44:06 +02:00
Fabian Joswig
d6e6a435a8
[ci] Re-enable fail on warning for pytest pipeline. (#265)
* [ci] Re-enable fail on warning for pytest pipeline.

* [Fix] Use sqlite3 context managers in pandas module.

* [Fix] Add closing context.
2025-05-05 17:09:40 +02:00
Fabian Joswig
dd4f8525f7
[CI] Add ARM runner and bump macos runner python version to 3.12 (#260) 2025-02-19 18:23:56 +01:00
Fabian Joswig
7eabd68c5f
[CI] Speed up test workflow install phase by using uv (#254)
* [CI] Speed up install phase by using uv

* [CI] Use uv in examples workflow

* [CI] Fix yml syntax

* [CI] Install uv into system env

* [CI] Add system install for examples workflow
2025-01-10 09:36:05 +01:00
Fabian Joswig
b43a2cbd34
[ci] Add python 3.13 to pytest workflow. (#242)
* [ci] Add python 3.13 to pytest workflow.

* [ci] Remove py and pyarrow from pytest workflow
2024-10-14 23:27:24 +02:00
Fabian Joswig
55cd782909
[Build] Remove python3.8 and add support for numpy 2 (#239)
* [build] Remove python 3.8 and bump dependency version.

* [Build] Remove python 3.8 from ci and update README python badge.

* [ci] Temporarily remove -Werror from pytest workflow.

* [ci] Remove python 3.8 from examples workflow.

* [Build] Bump further dependency versions.
2024-08-22 21:59:07 +02:00
Fabian Joswig
0df5882d1f
[ci] Include python 3.12 in ci after new dateutils release. (#229) 2024-03-01 07:14:01 +01:00
Fabian Joswig
43383acead
[ci] Update actions to use Node.js 20 (#228) 2024-02-06 17:54:33 +01:00
Fabian Joswig
1713ea146a
[ci] Install pyarrow in pytest workflow to silence pandas warnings. (#227) 2024-01-21 12:41:37 +01:00
Fabian Joswig
eb83ff2091 [ci] removed failing pytest 3.12 test for now. 2023-11-10 14:21:35 +01:00
Fabian Joswig
e032412ebd
[ci] Added python 3.12 to pytest and examples workflows. (#212) 2023-10-27 08:39:33 +02:00
Fabian Joswig
2017de0ec7 ci: workflow_dispatch added to pytest and examples workflow. 2023-09-15 09:02:08 +02:00
Fabian Joswig
1b45e71e79
ci: mac-os python version fixed. 2023-06-02 16:17:28 +01:00
Fabian Joswig
cdadbd0fad
ci: windows removed from pytest workflow, mac-os python version bumped
to 3.10
2023-06-02 16:16:04 +01:00
Fabian Joswig
5b80f44485
ci: pytest workflow updated to fail on warnings. 2023-06-02 15:48:35 +01:00
Fabian Joswig
86c060e79f
ci: python 3.7 removed from ci. 2023-05-21 17:11:38 +01:00
Fabian Joswig
033d8e9ac4
ci: python 3.11 added to pytest workflow, minimal version of h5py bumped
to 3.8
2023-01-23 10:42:26 +00:00
Fabian Joswig
7bb164120b
tests: fuzzy test for Obs added, test dependencies and documentation
updated.
2023-01-20 11:44:31 +00:00
Fabian Joswig
5adf29eda9
build: github actions versions updated. 2022-11-30 17:49:01 +00:00
Fabian Joswig
5a7a69d37f
ci: pytest workflow fixed. 2022-10-31 15:42:50 +01:00
Fabian Joswig
4c98bed2ad
ci: fail fast strategy for pytest workflow changed to false. 2022-10-19 13:03:23 +01:00
Fabian Joswig
0d02e4d4b9 build: extract version number in setup.py from version.py 2022-06-14 12:02:43 +01:00
Fabian Joswig
f62581ba69 ci: workflow for caching of binder build added. 2022-05-22 12:02:33 +01:00
Fabian Joswig
6d6d32e0c5 refactor!: minimal python version bumped to 3.7 2022-01-10 15:28:27 +01:00
Fabian Joswig
cd0f38c77d ci: macOS and windows added to pytest workflow 2022-01-07 11:59:06 +01:00
Fabian Joswig
06f4caf579 ci: python 3.10 added to pytest workflow 2021-12-13 14:54:30 +00:00
Fabian Joswig
9056d369d3 ci: wheel added to pytest workflow 2021-12-10 14:15:40 +00:00
Fabian Joswig
f30fcbd4d9 ci: pytest workflow scheduled to run once a month. 2021-12-09 07:37:42 +00:00
Fabian Joswig
5c9a521c29 ci: scheduled pytest workflow once a day. 2021-12-08 19:54:03 +00:00
Fabian Joswig
e4d7d56180 first version of new bookeeping system 2021-11-01 17:14:30 +00:00
Fabian Joswig
2b51ec9293 pytest workflow cleaned up 2021-11-01 13:45:26 +00:00
Fabian Joswig
01ec78a2a3 install requirements changed in pytest workflow 2021-11-01 13:39:55 +00:00
Fabian Joswig
d44168f6ae pypy3 added to pytest workflow 2021-11-01 13:35:10 +00:00
Fabian Joswig
02dd41b6b7 python 3.10 added to pytest workflow 2021-11-01 13:19:37 +00:00
Fabian Joswig
b5f3dd6ac3 Benchmarks added 2021-10-26 10:20:47 +01:00
Renamed from .github/workflows/CI.yml (Browse further)