Skip to content

CI: Documentation built but not published in PRs #23536

Closed
@datapythonista

Description

@datapythonista

I was taking a look at the build of the documentation, and it looks like in every PR it is built, but it's not being published:

From https://github.com/pandas-dev/pandas-docs-travis
 * [new branch]      gh-pages   -> origin/gh-pages
origin	https://@github.com/pandas-dev/pandas-docs-travis.git (fetch)
origin	https://@github.com/pandas-dev/pandas-docs-travis.git (push)
remote: Anonymous access to pandas-dev/pandas-docs-travis.git denied.
fatal: Authentication failed for 'https://@github.com/pandas-dev/pandas-docs-travis.git/'

On commits to master, looks like it's working as expected (we should probably update the url):

From https://github.com/pandas-dev/pandas-docs-travis
 * [new branch]      gh-pages   -> origin/gh-pages
origin	https://[secure]@github.com/pandas-dev/pandas-docs-travis.git (fetch)
origin	https://[secure]@github.com/pandas-dev/pandas-docs-travis.git (push)
remote: This repository moved. Please use the new location:        
remote:   https://github.com/pandas-docs/pandas-docs-travis.git        
To https://github.com/pandas-dev/pandas-docs-travis.git
 + 6f622be...de98643 gh-pages -> gh-pages (forced update)

Building the docs takes around 45 minutes, so I think we should probably build only when merging the PRs, and save some travis resources? Not sure how to do it, but I guess there is a way inside travis to know if we're in a PR or in a commit to master.

May be in the future we can consider publishing the docs for each PR, but that would require some development, as fixing the error here would publish all PRs into the same place, which is not very useful.

The relevant files are .travis.yml and ci/build_docs.sh.

CC: @TomAugspurger @jorisvandenbossche

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous IntegrationDocsNeeds DiscussionRequires discussion from core team before further actiongood first issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions