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

Additional changes to make github actions happy. #16

Merged
merged 5 commits into from Dec 19, 2021
Merged

Additional changes to make github actions happy. #16

merged 5 commits into from Dec 19, 2021

Conversation

bigcat88
Copy link
Contributor

@bigcat88 bigcat88 commented Dec 18, 2021

  1. Added -s parameter to pytest, to see output of tests.
  2. In tests added this output: print(f'Warning: Skipping {algorithm}, reason: {result}')
  3. set_algo now checks if cpu can run those algorithm.

P.S.:
On GitHub MacOS sysctl -a | grep machdep.cpu.features reports that AVX is present(avx1.0) but cpuid reports that avx2.0 is not. So now set_algo checks for cpu capabilities and tests for extra on MacOS are currently skipped. It's fine with this.

Returns empty string if algo was changed or "CPU doesnt support this feature." or "Library was built without this algorithm.".
Tests fixed for that changes.
@bigcat88 bigcat88 mentioned this pull request Dec 18, 2021
@mrecachinas
Copy link
Owner

@bigcat88 Please pull in the latest changes to master, which should enable CI to run on pull requests.

@bigcat88
Copy link
Contributor Author

i saw that you added build for another archs, just to you to know, i didnt currently add code or test it on arm or anything else except x86, i will do that probably during two next weeks...
but if update for x86 will be published till monday, we will release update for our app that uses hexhamming, and get some comments from people about how it works.

p.s.: last fedora ships with python 3.10 :)

@mrecachinas mrecachinas merged commit b8002f9 into mrecachinas:master Dec 19, 2021
@mrecachinas
Copy link
Owner

mrecachinas commented Dec 20, 2021

Sounds good. FYI, I just published 2.2.0 to PyPI. Let me know if there are any further issues. In the meantime, I'll test usings cibuildwheel.

As always, thank you for your contributions!

@bigcat88
Copy link
Contributor Author

@mrecachinas Can you please upload python 3.10 wheel? =)

@mrecachinas
Copy link
Owner

Done!

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.

None yet

2 participants