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

623 ci with cml runtimes #118

Merged
merged 41 commits into from
Oct 29, 2024
Merged

623 ci with cml runtimes #118

merged 41 commits into from
Oct 29, 2024

Conversation

AntonZogk
Copy link
Collaborator

Summary

Updating workflow to use cml runtimes to build and test the package when a pull request is created

Checklists

This pull request meets the following requirements:

  • installable with all dependencies recorded
  • runs without error
  • follows PEP8 and project specific conventions
  • appropriate use of comments, for example no descriptive comments
  • functions documented using Numpy style docstings
  • assumptions and decisions log considered and updated if appropriate
  • unit tests have been updated to cover essential functionality for a reasonable range of inputs and conditions
  • other forms of testing such as end-to-end and user-interface testing have been considered and updated as required
  • tests suite passes (locally as a minimum)
  • peer reviewed with review recorded

If you feel some of these conditions do not apply for this pull request, please
add a comment to explain why.

@AntonZogk
Copy link
Collaborator Author

The workflow failed because of :
FAILED tests/staging/test_data_cleaning.py::test_clean_and_merge - TypeError:...
FAILED tests/utilities/test_constrains.py::test_replace_values_index_base - A...

More details in the workflows

* Creating mapping validation function

* Docstrings

* Update docstring and leave unmatched as set

* Update to raise warning and created wraper to test multiple mapping files in one go

* adding test that passes when a warning raised

* update docstring to ask that mapping file be a folder and not a file
AntonZogk and others added 10 commits October 28, 2024 12:51
*Add reusable function
*Add test data
*Add unit test
*Add TODO to use this function in other parts of the pipeline
* move files to correct location

* change relevant module imports

* Move files to apropiate folders, rename folders

* Move all data to equivalent test folder structure

* Update estimation test paths and imports

* Update imputation test paths and imports

* Update outlier detection test paths and imports

* Update outpus test paths and imports

* Update utilities test paths and imports

* Remove tests/imputation/test_pivot_imputation_value.py

* Run hooks

* Add tests tree into tests readme

* Run hooks

* Remove duplicated test data

* These were copied instead of moved, hence duplicated

* these files aren't needed and covered by other tests

* update tree

---------

Co-authored-by: Wil Roberts <[email protected]>
@AntonZogk
Copy link
Collaborator Author

AntonZogk commented Oct 28, 2024

Updated source code for test_data_cleaning -> when selecting column can't use dictionary, by using list(dict) we get a list of the keys

Updated tests/utilities/test_constrains.py, there was an issue nan not equal to nan, solved by forcing string dtype instead of object

Updated the pre-commit (run pre-comming migrate config as suggested in warnings) used python instead of python3 (python3 was only for cdh)

Did a rebase with main to apply all recent changes in structure and build tests against them

@AntonZogk AntonZogk force-pushed the 623-CI-with-CML-runtimes branch from 8d65839 to c2e013f Compare October 28, 2024 16:14
Copy link
Collaborator

@robertswh robertswh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good to me. I testing pre-commits in Python 3.10 env, all passed. Happy to merge

@AntonZogk AntonZogk merged commit 9621804 into main Oct 29, 2024
5 checks passed
@AntonZogk AntonZogk deleted the 623-CI-with-CML-runtimes branch October 29, 2024 12:16
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.

3 participants