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

MNT: Drop travis for GHA #92

Merged
merged 8 commits into from
Nov 8, 2023
Merged

MNT: Drop travis for GHA #92

merged 8 commits into from
Nov 8, 2023

Conversation

maffettone
Copy link
Contributor

@maffettone maffettone commented Nov 1, 2023

Remove Travis for CI/CD and replace with GHA. Actions for the following were added:

  1. flake: code quality
  2. tests: run the same run_tests.py script that was run by Travis.
  3. python-publish: Publish to PyPI when a release is issued.

Notably, this shows some lint that wasn't highlighted by Travis (Flake8), and a couple of failing unit tests...

Copy link
Member

@mrakitin mrakitin left a comment

Choose a reason for hiding this comment

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

Looks good overall, thanks for the effort, @maffettone!

Maybe we could limit the version of NumPy in the requirements to avoid test failures?

What's the most recent version of NumPy where it works? We now have numpy=1.24.4 in our latest conda envs 2023-3.2. The latest version is https://pypi.org/project/numpy/1.26.1/.

.github/workflows/flake8.yml Show resolved Hide resolved
- Add min supported version
- Add long description from README
- Add short description
- Fix URL for repo
@maffettone
Copy link
Contributor Author

@mrakitin Looks like the build for the test container has numpy=1.24.4 so this may take a deeper look.

I updated the setup.py to be aligned with cookie-cutter. Can we merge this, and I'll add some unit testing to my TODOs this week?

@ambarb
Copy link
Contributor

ambarb commented Nov 6, 2023

Im good to merge once @mrakitin concurs.

Thanks for fixing these cosmetic things on top of improving CI and other such engineering aspects.

Copy link
Member

@mrakitin mrakitin left a comment

Choose a reason for hiding this comment

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

Looks good. Let's fix the minor problem with the content type (suggested below). Then it's good to go.

setup.py Show resolved Hide resolved
setup.py Show resolved Hide resolved
Co-authored-by: Max Rakitin <[email protected]>
@ambarb
Copy link
Contributor

ambarb commented Nov 8, 2023

tests are failing due to deprecation. we will address the deprecated unit tests separately.
#84
this should be a priority

flake8 is agreed to be addressed later
#93

merging now

@ambarb ambarb merged commit 4178d1c into master Nov 8, 2023
0 of 8 checks passed
@ambarb ambarb deleted the maint-gha branch November 8, 2023 18:04
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