Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@phobson
Copy link
Contributor

@phobson phobson commented Nov 17, 2022

fixes #28
ref #26

  • Updated some of the meta data (e.g., labeled Jim as the author, not maintainer)
  • Added pre-commit things to be consistent with other repos in the org
  • added environment files in a ci/ folder and work flows for testing and pre-commit
  • delete travis and appveyor configs
  • replace travis and appveyor badges in readme

@phobson
Copy link
Contributor Author

phobson commented Nov 17, 2022

GHA CI is failing on my fork with NaN vs 0 assertion errors:
https://github.com/phobson/crick/actions/runs/3484218155/jobs/5828532526#step:5:155

Will investigate.

Copy link
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

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

@phobson do we know if those assertions are due to a change in crick results across Python versions, or a difference in what scipy is returning?

@phobson
Copy link
Contributor Author

phobson commented Nov 19, 2022

@jrbourbeau the failures are related to changes in what scipy returns.

Since the expected values of the tests generated by scipy, I marked those tests as xfails for now.

I also removed the pre-commit action so that we could separate out getting tests running from a bunch of changes from black and flake8. I'll add it back in with separate PR.

@phobson
Copy link
Contributor Author

phobson commented Nov 19, 2022

@phobson phobson requested a review from jrbourbeau November 21, 2022 15:59
@phobson phobson mentioned this pull request Nov 21, 2022
@@ -1,33 +1,34 @@
import sys
import os
import sys
Copy link
Member

Choose a reason for hiding this comment

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

The changes in this file look like they're coming from black / isort / ... Is that the case? Just double checking the changes here are formatting-only

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes -- formatting only. I can revert those changes in try to keep them in #29 if you think that's more appropriate

RTOL = 0
ATOL = 1e-8

scipy_xfail_mark = pytest.mark.xfail(reason="modern scipy return NaN")
Copy link
Member

Choose a reason for hiding this comment

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

I'm still a little uncertain here. Did scipy change its output and crick no longer matches the more recent scipy behavior? Or do we just need to update the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

scipy changed it's behavior, so we'll have to update crick to match the new behavior. Alternatively, we could hardcode the expected values instead of using scipy to generate them, but that's not a very attractive solution to me. The assumption there is that scipy had good reason to change the behavior of these edge cases.

phobson and others added 3 commits November 21, 2022 09:41
Co-authored-by: James Bourbeau <[email protected]>
Co-authored-by: James Bourbeau <[email protected]>
Copy link
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

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

Thanks @phobson! Could you open up a separate issue for updating crick so we can remove scipy_xfail_mark?

@jrbourbeau jrbourbeau changed the title Add basic actions Migrate CI to GitHub Actions Nov 21, 2022
@jrbourbeau jrbourbeau merged commit 2e827d2 into dask:master Nov 21, 2022
@phobson phobson deleted the add-actions branch November 21, 2022 21:31
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.

Migrate CI to Github Actions

2 participants