Skip to content

Add Dependabot: conda environments, third-party actions, and base image - #47

Merged
mmcky merged 2 commits into
mainfrom
chore/dependabot-conda
Jun 16, 2026
Merged

mmcky merged 2 commits into
mainfrom
chore/dependabot-conda

Conversation

@mmcky

@mmcky mmcky commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Adds .github/dependabot.yml with three ecosystems to keep the repo's dependencies current.

Dependabot PRs run as dependabot[bot], which the preview-* actions already skip (no secret access), so these PRs won't trigger preview deploys.

1. conda — container environments

Watches containers/quantecon/environment.yml and containers/quantecon-build/environment.yml. The conda ecosystem (GA Dec 2025, changelog) resolves Python packages via PyPI — i.e. the pip: toolchain (jupyter-book, quantecon-book-theme, the sphinx-* extensions, kaleido), exactly what was bumped by hand for 0.7.0.

Out of scope: conda-only entries (anaconda metapackage, nodejs) aren't on PyPI; python is ignored so the version stays pinned under our control.

This complements the pinned Miniconda installer (#45): pin for reproducible/verifiable builds, and let Dependabot propose the package bumps so the env doesn't silently drift.

2. github-actions — third-party actions

Covers .github/workflows/ and each composite-action subdir (they must be listed individually — Dependabot only scans the named directory's action.yml, not nested ones). Tracks actions/cache, actions/*-pages, actions/github-script, actions/upload-artifact, conda-incubator/setup-miniconda, softprops/action-gh-release, docker/*, actions/checkout. Our own internal quantecon/actions@v0 sibling refs are ignored so Dependabot doesn't fight the floating tag.

This is the Dependabot half of #39 (the SHA-pinning piece is still separate).

3. docker — base image

Tracks the FROM ubuntu:24.04 base image in both Dockerfiles (not the Miniconda installer, which is pinned + checksummed in the RUN step).

🤖 Generated with Claude Code

Watches containers/quantecon and containers/quantecon-build environment.yml
via Dependabot's conda ecosystem (GA Dec 2025), which resolves Python
packages through PyPI — keeping the pip toolchain (jupyter-book,
quantecon-book-theme, sphinx-* extensions, kaleido) current with weekly PRs.

Conda-only entries (anaconda metapackage, nodejs) aren't on PyPI and stay
manual; `python` is ignored so the version stays under our control.

This complements the pinned Miniconda installer (#45): we pin for
reproducible/verifiable builds, and Dependabot proposes the package bumps so
the environment doesn't silently drift.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Copilot AI review requested due to automatic review settings June 16, 2026 05:14

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

Adds a Dependabot configuration to automatically propose weekly updates for Python packages referenced by the container conda environments, keeping the build toolchain current with less manual effort.

Changes:

  • Introduces .github/dependabot.yml to enable Dependabot’s conda ecosystem scanning.
  • Configures weekly update cadence, PR limit, label, and commit message prefix.
  • Ignores python updates to keep the interpreter version pinned under manual control.

- github-actions: keep the third-party actions current across .github/workflows
  and each composite action subdir (they must be listed explicitly — Dependabot
  only scans the given directory's action.yml). Ignores our own internal
  quantecon/actions @v0 sibling references.
- docker: track the ubuntu:24.04 base image in both Dockerfiles.

This also covers the Dependabot half of #39 (the SHA-pinning piece is separate).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@mmcky mmcky changed the title Add Dependabot for the container conda environments Add Dependabot: conda environments, third-party actions, and base image Jun 16, 2026
@mmcky

mmcky commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

Expanded per discussion — the config now has three ecosystems:

  • conda — both container environment.yml files (Python/pip toolchain via PyPI).
  • github-actions — third-party actions across .github/workflows/ and each composite action subdir (they have to be listed individually; Dependabot only scans the given directory's action.yml). Tracks actions/cache, actions/*-pages, actions/github-script, actions/upload-artifact, conda-incubator/setup-miniconda, softprops/action-gh-release, docker/*, actions/checkout. Our own internal quantecon/actions@v0 sibling refs are ignored so it doesn't fight the floating tag.
  • docker — the ubuntu:24.04 base image in both Dockerfiles.

The github-actions ecosystem covers the Dependabot half of #39 (the SHA-pinning piece is still separate).

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

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

Comment thread .github/dependabot.yml Resolved
@mmcky
mmcky merged commit 091b578 into main Jun 16, 2026
2 checks passed
@mmcky
mmcky deleted the chore/dependabot-conda branch June 16, 2026 06:19
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.

2 participants