-
Notifications
You must be signed in to change notification settings - Fork 23
mac arm build and CI addition #259
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
Conversation
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.
This looks fine, but could you add more comprehensive architecture testing to CI (either in this PR or a new one)? Currently, only linux-x86_64 seems to be tested.
.github/workflows/charm4py.yml
Outdated
export CHARM4PY_TEST_NUM_PROCESSES=2 | ||
python3 auto_test.py | ||
|
||
macos-arm: |
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 this x86_64 by any chance?
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.
Also, if the code for the CI steps is identical, this could probably be a build matrix.
I got both the x86 and m1 mac tests to work, but i had to disable thread fork safety checking for it to do so. |
just a guess, but the code uses f-strings, which were introduced in 3.6
9b3c3db
to
10afc1f
Compare
Why did you restructure it as a matrix? I split it up because I needed separate run steps for the mac build |
Most of the steps are identical across the different runs; if there are small differences between the steps, we can resolve them in the build script (via e.g. |
I think this is ready for review @mayantaylor @ritvikrao . I'm not sure if we should add other Python versions or architectures to CI? |
i think the tests here are sufficient, this looks good to me |
Updating setup.py for correct mac build: