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

Github Actions CI and modern config #44

Merged
merged 5 commits into from
May 7, 2024
Merged

Conversation

ColeDCrawford
Copy link
Contributor

This PR creates a CI workflow on Github Actions for python-edtf. The workflow uses a matrix strategy to test Python versions from 3.8 to 3.12. v5 of python-edtf drops support for Python <3.8. This PR also drops the travis.ci config.

This PR drops nose and tox in favor for pytest. nose is beyond EOL and was failing with newer versions of Python; nose2 does not seem to have many benefits over pytest as a testing framework. While tox has some benefits for local testing of multiple versions, it is unnecessary in CI given the Github Actions matrix strategy. I migrated the tox config to pyproject.toml if developers still want to use tox locally, but have removed it from the test dependencies.

This PR consolidates config in pyproject.toml rather than splitting across setup.py, setup.cfg, and tox.ini.

- Tests are failing due to testInterval(), but are being run correctly. On Python 3.12, `nose` is failing. We should upgrade to `nose2`, or more likely, switch from unittest + nose to pytest.
- Move tox config to setup.cfg for now
- TODO move to pyproject.toml instead of setup.cfg
- TODO remove .travis.yml
Remove setup.cfg and setup.py in favor of pyproject.toml

Nose and Tox are next to go. Nose seems to be failing on Python 3.10, no need for it any more as pytest should cover its features. Likely no need for tox either as we are using the matrix strategy in Github Actions, though it could be useful for local dev
@aweakley
Copy link
Member

aweakley commented May 7, 2024

This looks great. Thank you.

@aweakley aweakley merged commit 7ba63ad into ixc:v5 May 7, 2024
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.

2 participants