-
Notifications
You must be signed in to change notification settings - Fork 2
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
Start using a version matrix for unit tests #155
Conversation
Maybe split the CI into two jobs - linting shouldn't matter based on Python version? Do we want to move install to just relying on setup.cfg rather than requirements-dev.txt? E.g. have a `dev` section in `setup.cfg` and then just `pip install -e ".[dev]"`.
Failing due to |
This should make Dependabot PRs run the test suite
@ColeDCrawford We're running python 3.7 on a bunch of apps (media manager particularly) until our next upgrade cycle, so we may want to explore using https://pypi.org/project/backports.zoneinfo/ to support try:
import zoneinfo
except ImportError:
from backports import zoneinfo And regarding the idea of just relying on |
@arthurian how much pinning do we want to do in |
Can't seem to get the checks to show as passed on the PR, even though they are here: https://github.com/Harvard-ATG/lts-iiif-ingest-service/actions/runs/3488949032. This didn't run the split out I think that both of these are probably some odd edge case with Github Actions, as I split them partway through this PR so maybe the triggers are off. Can revisit if we encounter issues with it once this is in main. @arthurian - let me know how this looks and if you're good with it we can merge. I'm able to get this to install with |
Not sure what this will do with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ColeDCrawford Nice addition of the version matrix and the consolidation of the requirements files into setup.cfg
. Everything looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I double-checked the unit tests in the actions history to see the successful run, even though it isn't showing up here. I'm okay with removing requirements.txt
files for this repo, and it looks like eventually it'd be good to use pyproject.toml
for dependencies, if possible. Most of the documentation I'm looking at seems to prefer setup there. Might be an interesting dojo topic some time.
Yes, it looks like I've been looking at dependabot/dependabot-core#2133 and https://github.com/orgs/community/discussions/6456. It looks like Github dependency graph is separate from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good @ColeDCrawford and agree with @jaguillette. 👍
Closes #150
Maybe split the CI into two jobs - linting shouldn't matter based on Python version?
Do we want to move install to just relying on setup.cfg rather than requirements-dev.txt? E.g. have a
dev
section insetup.cfg
and then justpip install -e ".[dev]"
.