-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add CI #85
Add CI #85
Conversation
@@ -0,0 +1 @@ | |||
pytest==6.2.5 |
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.
Poetry might make more sense long term for managing/packaging this but went with plain pip for now to be easier :)
.github/workflows/ci.yml
Outdated
test: | ||
strategy: | ||
matrix: | ||
python-version: [3.9] |
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.
Could be extended to the other versions of Python needed to be supported.
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.
Good stuff, and testing on macOS and Windows as well as Linux! 👍
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Thanks for the feedback @hugovk! Example run: https://github.com/inverse/py-filelock/actions/runs/1262174438 |
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
- name: Install pip dependencies | ||
run: pip install -r requirements-test.txt | ||
- name: Test | ||
run: pytest -v test.py |
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.
IMO it would be better to add a test
extra and do pip install .[test]
.
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.
What do you mean?
This has been done in #87, thanks for the contribution 👍 |
Example: https://github.com/inverse/py-filelock/actions/runs/1262174438