-
Notifications
You must be signed in to change notification settings - Fork 76
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
Switch from CircleCI to GitHub Actions #1057
Conversation
The The work around was to add the |
|
38db8d1
to
bb30986
Compare
Hello @maukoquiroga! Since I rebased this PR the coverage went down to zero (for both |
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!
Thanks @HAEKADI! 😊 |
@MattiSG |
Mmh, I understand that I'd need to issue a personal token to get support for the API v1… I'm not so keen on that considering there is no scope limitation and I am admin on over 20 organisations. Could we consider using API v2 if it is not too costly? If that takes you more than one hour to put together, you can instead issue a personal token for yourself and send it to me in two pieces through side channels (e.g. Slack and SMS), I will then set it up 🙂 |
(as a side note, the |
Thanks for considering me for review @HAEKADI 😊 . I barely know Github Actions so I did what I could. |
Thank you for the feedback @maukoquiroga ^^ |
I don't think we needed both 😉 |
3324650
to
72334e5
Compare
I used both because according to the doc |
All that's left is to:
|
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.
🤩 🚢
path: ${{ env.pythonLocation }} | ||
key: build-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }} | ||
- name: Check NumPy typing against latest 3 minor versions | ||
run: for i in {1..3}; do VERSION=$(${GITHUB_WORKSPACE}/.github/get-numpy-version.py prev) && pip install numpy==$VERSION && make check-types; done |
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.
Why is this implemented with a shell script instead of with the matrix strategy? 🙂
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.
I tried using the matrix strategy but it was much more complicated than I anticipated since it is a dynamic matrix build which is problematic.
To my understanding it would require, first, creating another job, with a for loop, to get the three Numpy versions to check, store them into a JSON format and then using a matrix strategy (in the job itself) go through the list and install one by one. I was not successful in doing so, but I did not try for very long.
In my opinion, it is a complicated implementation for a simple output that is executed much more elegantly with the existing job and in 30 seconds. If however you think there is a simpler way to do it, or if it's worth the time investment, I'm happy to do it 😉
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.
I will merge this PR for the time being. And if need be address this issue in a new one :)
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.
IMHO this script is / will be useless once the matrix strategy is in place —if not done already.
I switched off all requested checks. Please notify admins on Slack to set GitHub Actions checks as mandatory once this has been merged 😃 |
Co-authored-by: Matti Schneider <matti.schneider@beta.gouv.fr>
Technical changes
To Do:
Once
Openfisca-doc
has migrated to GitHub Actions as well, the use of CircleCI API to update the doc should be changed as well.