Skip to content

Commit 1b9ae41

Browse files
ci: tidy3d-extras integration tests & docs
1 parent 4e8d086 commit 1b9ae41

10 files changed

Lines changed: 3087 additions & 539 deletions

.github/workflows/README.md

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ The orchestrator for the entire release pipeline. It sequences:
3333
- `client_tests`
3434
- `cli_tests`
3535
- `submodule_tests` (auto-enabled for non-RC `pypi` releases even if left `false`)
36+
- `extras_integration_tests` (runs with `test_type='full'` covering 10 platform/Python combinations)
3637

3738
When invoked via `workflow_call`, two optional overrides are also honored:
3839
- `deploy_testpypi`
@@ -81,7 +82,9 @@ Primary CI workflow; it runs on PRs (`latest`, `develop`, `pre/*`), merge queue
8182
- **Code quality**: `ruff format`, `ruff check`, `mypy`, `zizmor`, schema regeneration, commit/branch linting.
8283
- **Local tests**: Self-hosted Slurm runners on Python 3.10 and 3.13 (coverage enforced, diff-coverage comments for 3.13).
8384
- **Remote tests**: GitHub-hosted matrix across Windows, Linux, and macOS for Python 3.10–3.13.
84-
- **Optional suites**: CLI tests, version consistency checks, and submodule validation (non-RC release tags only) can be toggled via inputs.
85+
- **Optional suites**: CLI tests, version consistency checks, submodule validation (non-RC release tags only), and `tidy3d-extras` integration tests can be toggled via inputs.
86+
- **Extras integration tests**: When enabled on merge_group, runs basic smoke tests (4 configurations). When called from release workflow, runs full tests (10 configurations covering all architectures and Python 3.10/3.13).
87+
- **Test type control**: `test_type` input ("basic" or "full") can override automatic selection for extras integration tests.
8588
- **Dynamic scope**: Determines which jobs to run based on the event (draft PRs, approvals, merge queue, manual overrides).
8689
- **Outputs**: `workflow_success` summarizes whether every required job succeeded; the release workflow uses this to decide if deployment can continue.
8790

@@ -91,17 +94,53 @@ Primary CI workflow; it runs on PRs (`latest`, `develop`, `pre/*`), merge queue
9194

9295
Reusable workflow that runs the develop-CLI integration tests. It is usually invoked by the main tests workflow when `cli_tests` is requested but can also be triggered directly.
9396

97+
### `tidy3d-extras-python-client-tests-integration.yml`
98+
99+
Dedicated integration test workflow for `tidy3d-extras` package. Tests the optional extras functionality with two test modes: basic (smoke tests) and full (comprehensive coverage).
100+
101+
**Test Modes:**
102+
- **Basic tests** (default for PRs): 4 test configurations for fast smoke testing
103+
- Linux x86_64 (`ubuntu-latest`) - Python 3.10
104+
- macOS arm64 (`macos-latest`) - Python 3.10
105+
- Windows x64 (`windows-latest`) - Python 3.10
106+
- Windows x64 (`windows-latest`) - Python 3.13
107+
- **Full tests** (default for releases): 10 test configurations covering all architectures and Python versions
108+
- Linux x86_64 (`ubuntu-latest`) - Python 3.10, 3.13
109+
- Linux aarch64 (`linux-arm64`) - Python 3.10, 3.13
110+
- macOS x86_64 (`macos-15-intel`) - Python 3.10, 3.13
111+
- macOS arm64 (`macos-latest`) - Python 3.10, 3.13
112+
- Windows x64 (`windows-latest`) - Python 3.10, 3.13
113+
114+
**Key Features:**
115+
- **Test type control**: `test_type` input ("basic" or "full") determines scope
116+
- **Automatic selection**: Basic for merge_group (PR merges), full for release workflow
117+
- **Architecture coverage**: Full mode tests all runner architectures where wheels are built (x86_64, aarch64, arm64)
118+
- **Python version coverage**: Full mode tests both minimum supported (3.10) and latest (3.13) Python versions
119+
- **AWS CodeArtifact integration**: Authenticates with CodeArtifact to access private dependencies
120+
- **Comprehensive test coverage**: Includes doctests, extras license verification, and full test suite with coverage reporting
121+
- **Release tag support**: Can test against a specific release tag via the `release_tag` input
122+
- **Invocation**: Called from `tidy3d-python-client-tests.yml` when `extras_integration_tests` is enabled, or run manually via `workflow_dispatch`
123+
- **Outputs**: `workflow_success` indicates whether all integration tests passed
124+
125+
The workflow ensures that the `tidy3d-extras` package installs and functions correctly across all supported platforms and architectures before releases.
126+
94127
## Maintenance Workflows
95128

96129
### `tidy3d-python-client-daily.yml`
97130

98131
Scheduled at 05:00 UTC and also manually runnable. It fans out to:
99132
- `tidy3d-python-client-update-lockfile.yml` – keeps dependencies fresh.
100-
- The submodule smoke-test workflow – ensures docs/notebooks submodules stay aligned (same helper the release tests call).
133+
- `tidy3d-python-client-release.yml` – runs a daily draft release (`daily-0.0.0`) with client and CLI tests enabled to catch breaking changes early. This validates that the package can be built and tested against the latest develop branch without actually publishing artifacts.
101134

102135
### `tidy3d-python-client-update-lockfile.yml`
103136

104-
Manual or called workflow that updates `poetry.lock`, authenticates against AWS CodeArtifact, and opens a PR on `develop` with the refreshed lockfile (`daily-chore/update-poetry-lock`). Requires `AWS_CODEARTIFACT_ACCESS_KEY` and `AWS_CODEARTIFACT_ACCESS_SECRET`.
137+
Manual or called workflow that updates `poetry.lock`, authenticates against AWS CodeArtifact, and opens a PR with the refreshed lockfile. Requires `AWS_CODEARTIFACT_ACCESS_KEY` and `AWS_CODEARTIFACT_ACCESS_SECRET`.
138+
139+
**Key inputs:**
140+
- `source_branch` – branch to checkout and update lockfile for (defaults to `develop`). Useful for updating lockfiles on feature branches or release branches.
141+
- `run_workflow` – boolean to enable/disable the workflow execution.
142+
143+
The workflow creates a PR with branch name `chore/update-poetry-lock-{source_branch}` targeting the specified source branch.
105144

106145
## Documentation Workflows
107146

@@ -212,4 +251,5 @@ Private dependencies are sourced through AWS CodeArtifact:
212251

213252
- Release workflow details: `docs/development/release/version.rst`
214253
- Development guidelines: `AGENTS.md`
254+
- Docker development environment: `docs/development/docker.rst` – comprehensive guide for setting up and using the Docker-based development environment
215255
- General repository info: `README.md`

0 commit comments

Comments
 (0)