Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI configuration #12

Merged
merged 5 commits into from
Mar 18, 2024
Merged

Add CI configuration #12

merged 5 commits into from
Mar 18, 2024

Conversation

sk1p
Copy link
Member

@sk1p sk1p commented Mar 13, 2024

Fixes #10

I fixed some of the test cases already (mainly the rename minimize -> optimize), except for tests/test_overfocus.py::test_translation_ref, which still fails. Not sure what's wrong there - the test case or the code?

This PR also adds a pre-commit config with flake8 and pyupgrade, among others.

- Support Python 3.12
- Drop support for old Python (which is already being dropped by
  LiberTEM)
- Collect coverage during testing
- `minimize` -> `optimize`; move `method` parameter into `minimizer_kwargs`
- The `callback` now gets the current loss as fourth argument
@sk1p sk1p requested a review from uellue March 13, 2024 18:59
@uellue
Copy link
Member

uellue commented Mar 18, 2024

The test failure was introduced by TemGym/TemGym@e32a510

Copy link

codecov bot commented Mar 18, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@uellue uellue merged commit 7e08ca8 into main Mar 18, 2024
15 checks passed
@sk1p sk1p deleted the add-ci branch March 18, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CI
2 participants