-
Notifications
You must be signed in to change notification settings - Fork 3
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
Github token needed for CI when downloading executables #349
Conversation
The reason it is suddenly exceeding the interaction rate github allows without github token is because now the version of modflow is often checked; upon most calls of |
I am back from the holidays and saw many improvements so I might not be completely up to date. Do I understand correctly that every time you call If that is correct than I am wondering if we really want to do this check every time. I personally almost never want to download the newest executable when I call the |
Hi Onno, So I looked it up. You can do 60 requests per hour to the github website without account/token. That means 1 time downloading and 59 times converting "latest" to "18.0". And is called with every to_model_ds(), so this is indeed not feasible. I'll change it. |
Okay, so now the defaults are configured such that only when you pass the version_tag command the version is checked. If you explicitely pass the version_tag "latest" an API call is made, and when this version is not already installed on your PC, another API call is made to download the executables. If the version_tag is set to for example "18.0" this first API call is not required. @OnnoEbbens could you have a look at the PR? |
Looks good to me. Only thing I don't understand yet is why you need the environment variable |
Also required by flopy tests: https://github.com/modflowpy/flopy/blob/388ac8d484b08ae26a57793759bae22dd0db21fb/.github/workflows/mf6.yml#L81
edit: suppressing checking version of exe during tests instead of adding github token