Skip to content

Commit 9e8173d

Browse files
codex-cicd notebook
1 parent 7df6d13 commit 9e8173d

File tree

5 files changed

+294
-0
lines changed

5 files changed

+294
-0
lines changed

AGENTS.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Repository Guidelines
2+
3+
## Project Structure & Module Organization
4+
The cookbook is organized around runnable examples and reference articles for OpenAI APIs. Place notebooks and Python scripts under `examples/<topic>/`, grouping related assets inside topic subfolders (for example, `examples/agents_sdk/`). Narrative guides and long-form docs live in `articles/`, and shared diagrams or screenshots belong in `images/`. Update `registry.yaml` whenever you add content so it appears on cookbook.openai.com, and add new author metadata in `authors.yaml` if you want custom attribution. Keep large datasets outside the repo; instead, document how to fetch them in the notebook.
5+
6+
## Build, Test, and Development Commands
7+
Use a virtual environment to isolate dependencies:
8+
- `python -m venv .venv && source .venv/bin/activate`
9+
- `pip install -r examples/<topic>/requirements.txt` (each sample lists only what it needs)
10+
- `jupyter lab` or `jupyter notebook` to develop interactively
11+
- `python .github/scripts/check_notebooks.py` to validate notebook structure before pushing
12+
13+
## Coding Style & Naming Conventions
14+
Write Python to PEP 8 with four-space indentation, descriptive variable names, and concise docstrings that explain API usage choices. Name new notebooks with lowercase, dash-or-underscore-separated phrases that match their directory—for example `examples/gpt-5/prompt-optimization-cookbook.ipynb`. Keep markdown cells focused and prefer numbered steps for multi-part workflows. Store secrets in environment variables such as `OPENAI_API_KEY`; never hard-code keys inside notebooks.
15+
16+
## Testing Guidelines
17+
Execute notebooks top-to-bottom after installing dependencies and clear lingering execution counts before committing. For Python modules or utilities, include self-check cells or lightweight `pytest` snippets and show how to run them (for example, `pytest examples/object_oriented_agentic_approach/tests`). When contributions depend on external services, mock responses or gate the cells behind clearly labeled opt-in flags.
18+
19+
## Commit & Pull Request Guidelines
20+
Use concise, imperative commit messages that describe the change scope (e.g., "Add agent portfolio collaboration demo"). Every PR should provide a summary, motivation, and self-review, and must tick the registry and authors checklist from `.github/pull_request_template.md`. Link issues when applicable and attach screenshots or output snippets for UI-heavy content. Confirm CI notebook validation passes locally before requesting review.
21+
22+
## Metadata & Publication Workflow
23+
New or relocated content must have an entry in `registry.yaml` with an accurate path, date, and tag set so the static site generator includes it. When collaborating, coordinate author slugs in `authors.yaml` to avoid duplicates, and run `python -m yaml lint registry.yaml` (or your preferred YAML linter) to catch syntax errors before submitting.

authors.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,3 +477,11 @@ heejingithub:
477477
name: "Heejin Cho"
478478
website: "https://www.linkedin.com/in/heejc/"
479479
avatar: "https://avatars.githubusercontent.com/u/169293861"
480+
481+
482+
himadri:
483+
name: "Himadri Acharya"
484+
website: "https://www.linkedin.com/in/himadri-acharya-086ba261/"
485+
avatar: "https://avatars.githubusercontent.com/u/14100684?v=4"
486+
487+

examples/codex/codex-cicd.ipynb

Lines changed: 249 additions & 0 deletions
Large diffs are not rendered by default.
199 KB
Loading

registry.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,3 +2509,17 @@
25092509
- katiagg
25102510
tags:
25112511
- images
2512+
2513+
2514+
- title: Codex CLI to automatically fix CI failures
2515+
path: examples/codex/codex-cicd.ipynb
2516+
date: 2025-09-30
2517+
authors:
2518+
- alwell-kevin
2519+
- himadri518
2520+
tags:
2521+
- codex
2522+
2523+
2524+
2525+

0 commit comments

Comments
 (0)