-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Sphinx build failing on act but succeeding on actions #1853
Comments
@liopeer I ran into this issue today. There's definitely a problem with how the timezone is being retrieved by name: "Push Docs Build"
on: [push]
permissions:
contents: write
jobs:
# anything in the job "docs" is executed on the same runner
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build docs
run: |
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
cd $GITHUB_WORKSPACE/docs
python -m pip install -r requirements.txt
TZ=UTC make html
- uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html/ |
This was referenced Aug 29, 2023
ESKYoung
added a commit
to ESKYoung/cookiecutter-machine-learning
that referenced
this issue
Sep 12, 2023
Temporary fix for nektos/act#1853.
Issue is stale and will be closed in 14 days unless there is new activity |
alcarney
added a commit
to alcarney/esbonio
that referenced
this issue
Jul 7, 2024
This seems to fix an issue that prevents Sphinx from running inside a devcontainer nektos/act#1853
alcarney
added a commit
to swyddfa/esbonio
that referenced
this issue
Jul 7, 2024
This seems to fix an issue that prevents Sphinx from running inside a devcontainer nektos/act#1853
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report info
Command used with act
Describe issue
Sphinx build fails at "make html" from the workflow below. It seems to be a timezone related issue that arises from the interaction of the Python packages babel & zoneinfo.
It is important to mention again, that it runs fine when pushing to Github, but unfortunately not in act.
Find the error below:
| Traceback (most recent call last):
| File "/usr/local/bin/sphinx-build", line 5, in
| from sphinx.cmd.build import main
| File "/usr/local/lib/python3.10/dist-packages/sphinx/cmd/build.py", line 20, in
| from sphinx.application import Sphinx
| File "/usr/local/lib/python3.10/dist-packages/sphinx/application.py", line 25, in
| from sphinx.config import Config
| File "/usr/local/lib/python3.10/dist-packages/sphinx/config.py", line 14, in
| from sphinx.util.i18n import format_date
| File "/usr/local/lib/python3.10/dist-packages/sphinx/util/i18n.py", line 12, in
| import babel.dates
| File "/usr/local/lib/python3.10/dist-packages/babel/dates.py", line 34, in
| from babel import localtime
| File "/usr/local/lib/python3.10/dist-packages/babel/localtime/init.py", line 41, in
| LOCALTZ = get_localzone()
| File "/usr/local/lib/python3.10/dist-packages/babel/localtime/init.py", line 37, in get_localzone
| return _get_localzone()
| File "/usr/local/lib/python3.10/dist-packages/babel/localtime/_unix.py", line 49, in _get_localzone
| tzinfo = _get_tzinfo(zone_name)
| File "/usr/local/lib/python3.10/dist-packages/babel/localtime/_helpers.py", line 21, in _get_tzinfo
| return zoneinfo.ZoneInfo(tzenv)
| File "/usr/lib/python3.10/zoneinfo/_tzpath.py", line 67, in find_tzfile
| _validate_tzfile_path(key)
| File "/usr/lib/python3.10/zoneinfo/_tzpath.py", line 81, in _validate_tzfile_path
| raise ValueError(
| ValueError: ZoneInfo keys may not be absolute paths, got: /UTC
| make: *** [Makefile:20: html] Error 1
[Push Docs Build/docs] ❌ Failure - Main Build docs
[Push Docs Build/docs] exitcode '2': failure
[Push Docs Build/docs] 🏁 Job failed
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: