Commit Graph

46 Commits

Author SHA1 Message Date
lunin_l 4e3b70140a CI/CD: add conda build installation (#309)
Build on RHEL8 / build (push) Successful in 2m59s
Build on RHEL9 / build (push) Successful in 2m56s
Run tests using data on local RHEL8 / build (push) Successful in 3m41s
Build on local RHEL8 / build (push) Successful in 2m37s
Build conda pkgs workflows
[failing](https://github.com/slsdetectorgroup/aare/actions/runs/25800676450/job/75789547058#step:5:10)
due to the missing `conda build` command.

This PR fixes the issue.
2026-05-13 16:32:02 +02:00
lunin_l 8f8173feb6 CI/CD: Integrate pre-commit hooks and GitHub Actions workflow (#303)
Build on RHEL8 / build (push) Successful in 2m48s
Build on RHEL9 / build (push) Successful in 3m8s
Run tests using data on local RHEL8 / build (push) Successful in 3m34s
Build on local RHEL8 / build (push) Successful in 2m24s
To improve codebase quality and reduce human error, this PR introduces
the pre-commit framework. This ensures that all code adheres to project
standards before it is even committed, maintaining a consistent style
and catching common mistakes early.

Key Changes:

- Code Formatting: Automated C++ formatting using clang-format (based on
the project's .clang-format file).
- Syntax Validation: Basic checks for file integrity and syntax.
- Spell Check: Automated scanning for typos in source code and comments.
- CMake Formatting: Standardization of CMakeLists.txt and .cmake
configuration files.
- GitHub Workflow: Added a CI action that validates every Pull Request
against the pre-commit configuration to ensure compliance.

The configuration includes a [ci] block to handle automated fixes within
the PR. Currently, this is disabled. If we want the CI to automatically
commit formatting fixes back to the PR branch, this can be toggled to
true in .pre-commit-config.yaml.

```yaml
ci:
  autofix_commit_msg: [pre-commit] auto fixes from pre-commit hooks
  autofix_prs: false
  autoupdate_schedule: monthly
```

The last large commit with the fit functions, for example, was not
formatted according to the clang-format rules. This PR would allow to
avoid similar mistakes in the future.

Python fomat with `ruff` for tests and sanitiser for `.ipynb` notebooks
can be added as well.
2026-04-14 11:52:23 +02:00
Erik Fröjdh 7e6c6081dc Updated build pipeline (#290)
Build on RHEL8 / build (push) Successful in 2m19s
Build on RHEL9 / build (push) Successful in 2m34s
Run tests using data on local RHEL8 / build (push) Successful in 3m3s
Build on local RHEL8 / build (push) Successful in 1m57s
- Fixed failing conda builds (numpy >=2.1 and added pytest-check)
- added cibuildwheel settings for osx
- Bumped cibuildwheel to 3.4.0 in pipeline
- build also for macos-latest
- fixed conda workflow which was only on developer branch (now main and
pr to main)
2026-03-24 15:09:57 +01:00
mazzol_a b77a576f72 Dev/automate tests using data (#267)
Build on RHEL8 / build (push) Successful in 2m13s
Build on RHEL9 / build (push) Successful in 2m37s
Run tests using data on local RHEL8 / build (push) Successful in 3m12s
- automatically run python tests 
- automatically run test using data files on local runner from gitea
- fixed some of the workflows

---------

Co-authored-by: Erik Fröjdh <erik.frojdh@psi.ch>
2026-01-20 17:20:48 +01:00
Erik Fröjdh cf53922bd3 restrict upload artifact 2025-11-26 20:21:57 +01:00
Erik Fröjdh 13cffb1ea8 WIP 2025-11-26 20:11:38 +01:00
Erik Fröjdh bea373a112 with file 2025-11-26 20:09:05 +01:00
Erik Fröjdh a66ce15a6c renamed workflow and added macos-latest 2025-11-26 20:07:32 +01:00
Erik Fröjdh 6fe822d5dd WIP 2025-11-26 19:56:53 +01:00
Erik Fröjdh 8ed874a679 using tests 2025-11-26 19:54:43 +01:00
Erik Fröjdh 11fa95b23c Improved documentation for ClusterFile on the python side (#201)
- Fixed CI job not doing python docs
- added more docs on cluster file 
- fixed generating docs on cluster vector
2025-06-13 10:41:39 +02:00
Erik Fröjdh 3cc44f780f Added branching strategy etc. to docs (#191)
Build on RHEL9 / build (push) Successful in 2m56s
Build on RHEL8 / build (push) Successful in 2m57s
Added a section on the ideas behind the library and also explaining the
branching strategy.

---------

Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
2025-06-11 13:21:21 +02:00
froejdh_e efd2338f54 deploy docs on release only
Build on RHEL8 / build (push) Successful in 2m56s
Build on RHEL9 / build (push) Successful in 2m57s
2025-06-05 14:55:00 +02:00
Erik Fröjdh 94ac58b09e For 2025.5.22 release (#181)
Build on RHEL9 / build (push) Successful in 2m22s
Build on RHEL8 / build (push) Successful in 2m29s
Co-authored-by: Patrick <patrick.sieberer@psi.ch>
Co-authored-by: JulianHeymes <julian.heymes@psi.ch>
Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
Co-authored-by: Xiangyu Xie <45243914+xiangyuxie@users.noreply.github.com>
Co-authored-by: xiangyu.xie <xiangyu.xie@psi.ch>
Co-authored-by: AliceMazzoleni99 <alice.mazzoleni@psi.ch>
Co-authored-by: Mazzoleni Alice Francesca <mazzol_a@pc17378.psi.ch>
Co-authored-by: siebsi <sieb.patr@gmail.com>
2025-05-22 11:40:39 +02:00
Erik Fröjdh fd0196f2fd Developer (#164)
Build on RHEL9 / build (push) Successful in 1m58s
Build on RHEL8 / build (push) Successful in 2m22s
- State before merging the new cluster vector API

---------

Co-authored-by: Patrick <patrick.sieberer@psi.ch>
Co-authored-by: JulianHeymes <julian.heymes@psi.ch>
Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
Co-authored-by: Xiangyu Xie <45243914+xiangyuxie@users.noreply.github.com>
Co-authored-by: xiangyu.xie <xiangyu.xie@psi.ch>
Co-authored-by: siebsi <sieb.patr@gmail.com>
2025-04-22 16:41:48 +02:00
Erik Fröjdh dadf5f4869 Added fitting, fixed roi etc (#129)
Co-authored-by: Patrick <patrick.sieberer@psi.ch>
Co-authored-by: JulianHeymes <julian.heymes@psi.ch>
2025-02-12 16:50:31 +01:00
froejdh_e b43003966f build pkg on all branched deploy docs on main 2024-11-29 16:41:42 +01:00
froejdh_e 996a8861f6 roll back conda-build 2024-11-26 15:53:06 +01:00
Erik Fröjdh a0b6c4cc03 Merge branch 'main' into developer 2024-11-11 18:52:23 +01:00
Erik Fröjdh 5f21759c8c removed prints, bumped version 2024-11-11 18:22:18 +01:00
Erik Fröjdh d8d1f0c517 Taking v1 as the first release (#92)
- file reading
- decoding master file
2024-11-07 10:14:20 +01:00
Erik Fröjdh d5fb823ae4 added numpy variants 2024-11-07 09:16:49 +01:00
Erik Fröjdh 92d9c28c73 numpy in conda env for docs 2024-10-30 18:35:54 +01:00
Erik Fröjdh 1b61155c5c another try 2024-10-30 16:15:44 +01:00
Erik Fröjdh 738934f2a0 added github token 2024-10-30 16:12:08 +01:00
Erik Fröjdh 6b8f2478b6 added deploy 2024-10-30 16:04:11 +01:00
Erik Fröjdh 41fbddb750 pinned sphinx version 2024-10-30 15:56:27 +01:00
Erik Fröjdh acdcaac338 fmt 2024-10-30 15:39:04 +01:00
Erik Fröjdh 8b43011fa1 modified action 2024-10-30 15:37:23 +01:00
Erik Fröjdh da5ba034b8 WIP 2024-10-30 15:18:48 +01:00
Erik Fröjdh 1cbded04f8 doxygen 2024-10-30 15:14:55 +01:00
Erik Fröjdh 9b33ad0ee8 pybind 2024-10-30 15:13:20 +01:00
Erik Fröjdh 1f539a234b forgot json 2024-10-30 15:11:52 +01:00
Erik Fröjdh 29a42507d7 WIP 2024-10-30 15:09:35 +01:00
Erik Fröjdh 5035c20aa4 added action for docs 2024-10-30 15:07:34 +01:00
Erik Fröjdh f754e0f769 file reading 2024-10-30 14:53:50 +01:00
Erik Fröjdh b037aebc5f update 2024-10-30 08:36:38 +01:00
Erik Fröjdh dea5aaf9cf slight mod 2024-10-30 08:33:22 +01:00
Erik Fröjdh 4cc6aa9d40 updated workflows 2024-10-30 08:11:38 +01:00
Erik Fröjdh c3a5d22f83 added anaconda-client 2024-10-29 17:54:02 +01:00
Erik Fröjdh a8afa04129 updated workflow 2024-10-29 17:50:44 +01:00
Erik Fröjdh eb855fb9a3 updated workflow 2024-10-29 17:49:21 +01:00
Erik Fröjdh b4fe044679 WIP 2024-10-29 17:00:58 +01:00
Erik Fröjdh 082d793161 WIP 2024-10-29 16:46:02 +01:00
Erik Fröjdh 9f29f173ff updated path 2024-10-29 13:09:14 +01:00
Erik Fröjdh 8a10bcbbdb workflow 2024-10-29 13:07:53 +01:00