Skip to content

Fix errors when deploying docs#1179

Merged
dwhswenson merged 4 commits into
masterfrom
docs_deploy
Mar 2, 2026
Merged

Fix errors when deploying docs#1179
dwhswenson merged 4 commits into
masterfrom
docs_deploy

Conversation

@dwhswenson

@dwhswenson dwhswenson commented Mar 1, 2026

Copy link
Copy Markdown
Member

The deploy_docs.yml workflow was failing on merges. This PR will work on fixing it.

@dwhswenson dwhswenson marked this pull request as ready for review March 1, 2026 03:32
@dwhswenson dwhswenson requested a review from Copilot March 1, 2026 03:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses failures in the documentation deployment workflow by ensuring the docs build imports the repository’s local source tree and by aligning the docs CI environment’s Python pinning with the conda_install_reqs.sh script expectations.

Changes:

  • Update docs/conf.py to prepend the repository root to sys.path (and remove the old path tweak).
  • Update deploy_docs.yml to set CONDA_PY and switch the Miniconda Python version to 3.12, with the OPS install step placed after doc-tool installation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/conf.py Ensures Sphinx imports the local repo code before any installed package version.
.github/workflows/deploy_docs.yml Pins Python via CONDA_PY/Miniconda to prevent requirements install failures during docs deploy.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +18 to 21
env:
CONDA_PY: "3.12"
steps:
- uses: actions/checkout@v2

Copilot AI Mar 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description references a docs_deploy.yml workflow, but the repository workflow file appears to be named deploy_docs.yml. Please update the PR description (or rename the workflow file if that was the intent) so it's clear which workflow this change is fixing.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edited and fixed. But seriously, that's your comment, Copilot? 🤨

@codecov

codecov Bot commented Mar 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.29%. Comparing base (8503204) to head (87c9525).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1179   +/-   ##
=======================================
  Coverage   81.29%   81.29%           
=======================================
  Files         147      147           
  Lines       15810    15810           
=======================================
  Hits        12852    12852           
  Misses       2958     2958           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dwhswenson dwhswenson requested a review from sroet March 1, 2026 03:36
@dwhswenson

Copy link
Copy Markdown
Member Author

This is ready for review and comment. Without review, I will merge this after at least 24 hours, no sooner than Mon 02 Mar 04:00 GMT (Sun 01 Mar 22:00 my local).

@sroet sroet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nitpick, but looks great otherwise

Comment thread docs/conf.py Outdated
@dwhswenson

Copy link
Copy Markdown
Member Author

@sroet Good point -- this is old code that predates us supporting Python 3. Updated the whole thing to be more modern in 87c9525. (including some autoreplace in comments that probably didn't matter, but eh, whatever).

Merging!

@dwhswenson dwhswenson merged commit e6f8b89 into master Mar 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants