-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
CI job for running Python unit tests #10819
Conversation
5511aa0
to
9de4bf2
Compare
657f989
to
006a604
Compare
Looks like bytecode comparison passed. I just pushed small tweaks now but they should not really change the result. This is now ready for review. |
.circleci/config.yml
Outdated
# NOTE: For bytecode generation we need the input files to be byte-for-byte identical on all | ||
# platforms so line ending conversions must absolutely be disabled. | ||
- run: git config --global core.autocrlf false |
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.
We could put this in .gitattributes
but then it would also change for the build job and for contributors who work on Windows. I think that for the build job either is fine (with it enabled we're getting extra testing for CRLF versions) but not for users - we'd probably start getting CRLF endings in PRs. So I'm changing this only for specific jobs.
006a604
to
def25e1
Compare
The command to run the Python tests locally on your machine ( I'm moving the PR back to draft for a moment because now that I pushed it, I need to resolve the CI failures. |
aeda9a5
to
e9ef298
Compare
1b135a0
to
4465e6e
Compare
326b814
to
b8329c0
Compare
4465e6e
to
8c88bb0
Compare
b8329c0
to
83d65ba
Compare
8c88bb0
to
01756b8
Compare
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. Again one more review is nice before merging.
01756b8
to
1a6fefd
Compare
The change I just pushed is just a minor comment fix ( |
- checkout | ||
- run: | ||
name: Python unit tests | ||
command: python3 test/pyscriptTests.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.
Is python3
for sure installed?
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.
It runs in the CI :) So, yes?
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.
it's ubuntu so, you never know...
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.
Yeah. It's actually the plain python
executable that is not :) Initially I used python
and I was getting errors saying that it does not exist.
On Ubuntu the python
symlink is a part of some package other than python
(it's in python-pip
I think?) so if you just install Python 3, it's not there.
16aa5c0
to
564f963
Compare
|
564f963
to
cf147fa
Compare
Yeah :)
Changed back. |
NOTE: This PR is based on #10822. Please don't merge until that one is merged.
This job runs the new unit tests introduced in #10675.
I'm running it also on Windows because I want to add some tests for #10676 that ensure that newlines are processed in the same way on CRLF platforms too.
EDIT: Turns out that the tests were not passing on Windows so I have rebased this PR on #10822 which fixes those issues.