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

Add CI #85

Closed
wants to merge 8 commits into from
Closed

Add CI #85

wants to merge 8 commits into from

Conversation

inverse
Copy link

@inverse inverse commented Sep 22, 2021

  • Add basic CI pipeline to test against multiple OS

Example: https://github.com/inverse/py-filelock/actions/runs/1262174438

@inverse inverse mentioned this pull request Sep 22, 2021
@@ -0,0 +1 @@
pytest==6.2.5
Copy link
Author

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 :)

test:
strategy:
matrix:
python-version: [3.9]
Copy link
Author

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.

Copy link
Contributor

@hugovk hugovk left a 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! 👍

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
inverse and others added 3 commits September 22, 2021 16:19
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>
@inverse
Copy link
Author

inverse commented Sep 22, 2021

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>
Comment on lines +22 to +25
- name: Install pip dependencies
run: pip install -r requirements-test.txt
- name: Test
run: pytest -v test.py
Copy link
Collaborator

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].

Copy link
Author

Choose a reason for hiding this comment

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

What do you mean?

@gaborbernat
Copy link
Member

This has been done in #87, thanks for the contribution 👍

@inverse inverse deleted the add-ci branch March 22, 2023 18:16
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.

4 participants