-
-
Notifications
You must be signed in to change notification settings - Fork 48
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: move CI to GHA #36
Conversation
Oh, yeah. It won't activate until merged since there's no GHA workflow yet. |
.github/workflows/tests.yaml
Outdated
source activate test | ||
pytest -v -r s --color=yes --cov=dask_geopandas --cov-append --cov-report term-missing --cov-report xml . | ||
|
||
- uses: codecov/codecov-action@v1 |
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.
identation is off here?
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 catch, fixed
Let's test it in master |
Well, the good news is that CI seems to work. The bad that it fails. |
It's strange, it's the same test that is failing as on travis, but with a different error ... |
But now it seems as something we should be able to solve |
It might be a change in pyproj. If I update pyproj to the latest 3.0.1, then I can reproduce the error. But given it's a strange decoding error, that might be the thread-safety issue that came up recently. |
Very short term "solution" might be to pin pyproj to an older version in our CI to get that green again. A more proper short term solution might be to ensure that each partition gets a copy of the CRS, while now we set the same CRS object on each geopandas geodataframe (which are accessed from different threads): dask-geopandas/dask_geopandas/core.py Lines 155 to 157 in 6fd01e5
dask-geopandas/dask_geopandas/core.py Lines 15 to 19 in 6fd01e5
Eventually this will be fixed in pyproj as well. @snowman2 just opened a PR for that! |
This is likely the issue: pyproj4/pyproj#589 I would be surprised if there is an older version of pyproj that worked. The issue appears to be kind of random. You could test out this fix: pyproj4/pyproj#793 |
That's what I was planning. And indeed, with pyproj master I can reproduce the failure, with that branch it's fixed! |
Closes #35
I have removed python 3.6 and added 3.9, which is run on Linux, windows and mac. Dev env uses master of geopandas, pygeos and dask.
It should also start using codecov for coverage.