Closed vorburger closed 1 week ago
I've finally had a moment to have a closer look into why as-is this "works for me" (local), but initially fails the CI build:
It's because build-docs.bash
uses a pipenv
- which is not available by default in GitHub Runner VM images, apparently.
I could just add https://pipenv.pypa.io/en/latest/installation.html to build-docs.bash
... or is there a ready-made action?
Looking around a bit, discarding a few repos with 0 stars, I have zoomed in on:
Of these, the last one (@palewire's) does both Python & PipEnv, and seem to do some caching; so I'll try to add that...
https://github.com/palewire/install-python-pipenv-pipfile didn't seem to immediately just work, see https://github.com/palewire/install-python-pipenv-pipfile/issues/7, so 'm trying https://github.com/tiagovrtr/actions-pipenv instead, let's see...
I'm trying https://github.com/tiagovrtr/actions-pipenv instead, let's see...
That seems to work better, but pipenv run mkdocs build
now fails with:
Warning: Python 3.11 was not found on your system...
Neither 'pyenv' nor 'asdf' could be found to install Python.
You can specify specific versions of Python with:
$ pipenv --python path/to/python
Error: Process completed with exit code 1.
so trying Python 3.11 instead of latest 3.12 which I've initially selected (whatever works).
so trying Python 3.11 instead of latest 3.12 which I've initially selected (whatever works).
That helped! Plus adding a missing install - I must have done that locally, but CI needs to explicitly do it as well, of course.
With that, this is ready for review! https://google.github.io/android-fhir/ should look very different after this is merged...
see #2232