Skip to content
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

Test docs using ReadTheDocs CI instead of GitHub Actions #213

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

adamjstewart
Copy link
Collaborator

ReadTheDocs has its own CI platform. We should use this instead of GitHub Actions for the following reasons:

  • Identical environment as the one where the docs are actually hosted
  • Better control over Python version used during testing (Declare Python 3.7+ support #212)
  • Able to preview docs for a PR before it is merged

This PR updates .readthedocs.yaml to the latest API and sets fail_on_warning: true so we can catch documentation issues before a PR is merged. However, to get ReadTheDocs CI set up, someone with admin privileges will need to configure a few additional things. @hobu can you follow the instructions at https://docs.readthedocs.io/en/stable/pull-requests.html and see if that works?

@mwtoews may also be interested in this.

@mwtoews
Copy link
Member

mwtoews commented Feb 8, 2022

Looks good to me, but obviously it would be nice to see the rendered output.

@adamjstewart
Copy link
Collaborator Author

Yep, once @hobu sets things up on the RtD side we'll be able to see the rendered output directly in this PR by clicking the "Details" link on the CI check.

@hobu
Copy link
Member

hobu commented Feb 9, 2022

@hobu
Copy link
Member

hobu commented Feb 9, 2022

It looks like @sgillies is the admin of note here, so he'll have to update that in RTD as suggested or add me as an admin

@hobu
Copy link
Member

hobu commented Feb 10, 2022

@sgillies made me an RTD admin, and I have enabled PR builds, so once this conflict is resolved, things should be working.

@adamjstewart
Copy link
Collaborator Author

Rebased but I'm still not seeing a RtD check being added. Maybe try the suggestions in https://docs.readthedocs.io/en/stable/pull-requests.html#troubleshooting?

@hobu
Copy link
Member

hobu commented Feb 10, 2022

OAuth 👯‍♂️ done. Please try again.

@adamjstewart
Copy link
Collaborator Author

Still not seeing it. Maybe tweak the settings for your webhook? https://docs.readthedocs.io/en/stable/integrations.html#github

@hobu hobu closed this Feb 10, 2022
@hobu hobu reopened this Feb 10, 2022
@hobu
Copy link
Member

hobu commented Feb 10, 2022

image

looking like stuff is connected.

@adamjstewart
Copy link
Collaborator Author

On the GitHub side, for Spack and TorchGeo (two projects where we use RtD CI), under "Which events would you like to trigger this webhook?", we have the following events selected:

  • Branch or tag creation
  • Branch of tag deletion
  • Pull requests
  • Pushes

We also have "Active" checked at the bottom. If one of these isn't the problem for this repo then I'm not sure what else it could be.

@hobu hobu closed this Feb 10, 2022
@hobu hobu reopened this Feb 10, 2022
@adamjstewart
Copy link
Collaborator Author

Might be worth reaching out to support@readthedocs.org, they got back to me pretty quickly last time.

@hobu
Copy link
Member

hobu commented Feb 10, 2022

Even easier to give you admin 😄

@adamjstewart
Copy link
Collaborator Author

Just took a look. The only other thing I see different is that we're using application/x-www-form-urlencoded instead of application/json. Let me try that.

@adamjstewart
Copy link
Collaborator Author

Yeah, I'm out of ideas. Probably best to reach out to RtD support.

@mwtoews
Copy link
Member

mwtoews commented Feb 10, 2022

Perhaps this PR may need to be merged before taking effect.

@adamjstewart
Copy link
Collaborator Author

I don't think that's the case, but I could be wrong. Certainly no harm in merging this first.

@hobu hobu merged commit 51fad5f into Toblerity:master Feb 11, 2022
@adamjstewart adamjstewart deleted the docs/rtd-ci branch February 11, 2022 04:16
@adamjstewart
Copy link
Collaborator Author

I'm trying to set this up for another repo I maintain and I'm running into issues with that one too. I'm going to email RtD support, I'll let you know what they say.

@adamjstewart
Copy link
Collaborator Author

Okay, I got this working for another repo that I maintain. The "fix" was to log in to ReadTheDocs, go to my account settings, go to "Connected Services", and then disconnect and reconnect to GitHub. Unfortunately, this didn't solve the issue for rtree, possibly because I'm not the primary maintainer? Maybe @sgillies (or even @hobu) can try this?

@hobu
Copy link
Member

hobu commented Feb 17, 2022

ok, I bounced my github token again with RTD, but IIRC, I tried that when I was chicken waving the last iteration without success. It might be that @sgillies has to be the one to do it.

@adamjstewart adamjstewart mentioned this pull request Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants