Commit e7d0c29
authored
Phase 1.3: CI/CD Modernization (#205)
* create new feature branch; add audit file
* refactor: migrate from mypy to ty (Astral type checker)
Replace mypy with ty for static type checking. ty is Astral's
extremely fast Rust-based type checker that:
- Installs as a standalone binary (no Python package deps)
- Eliminates PyPy build failures caused by mypy's librt dependency
- Is 10-100x faster than mypy
- Integrates well with the Astral toolchain (uv, ruff)
Changes:
- pyproject.toml: Remove mypy from dev deps, add [tool.ty] section
- justfile: Update check-typing to use `ty check` instead of mypy
- justfile: Update distclean to remove .ty/ instead of .mypy_cache/
Some ty rules are ignored due to txaio's dynamic framework switching:
- unresolved-attribute: dynamic module attributes (using_twisted, etc)
- possibly-missing-attribute: sys._getframe() returns FrameType | None
- call-non-callable: callback type inference edge cases
- deprecated: abc.abstractproperty usage (to be fixed later)
* ci: enable ty type checking in GitHub Actions
- Add step to install ty via `uv tool install ty`
- Add ty version to toolchain verification output
- Enable type checking step (was commented out for mypy)
* ci: enable tests and coverage in GitHub Actions
Add test execution and coverage reporting to quality-checks job:
- Run tests via `just test cpy314`
- Run coverage report via `just check-coverage cpy314`
* ci: align workflows with wamp-cicd patterns
- Add identifiers job using wamp-cicd reusable workflow
- Add permissions block (contents: read, pull-requests: read)
- Add submodules: recursive to all checkout steps
- Add environment variables from identifiers outputs to all jobs
- Add coverage report artifact upload step
- Update build-package to depend on identifiers job
This aligns txaio workflows with autobahn-python patterns for
consistent CI/CD across the WAMP project group.
* ci: fix publish-github-releases to skip on PRs
- Add if condition to only run on push/workflow_dispatch events
- Add permissions block with contents: write for release creation
- Prevents failures when release.yml runs on PR events
* ci: align release.yml with autobahn-python model
- Replace direct push/pr triggers with workflow_run trigger
- Add check-main-workflow job to verify main workflow completed
- Use wamp-proto/wamp-cicd identifiers.yml for release type detection
- Separate release-development (dev/nightly) and release-production jobs
- Gate releases by identifiers.outputs.release_type
- Production releases now trigger on 'stable' release_type from tags
- Development releases trigger on 'development' or 'nightly' types
- Use softprops/action-gh-release@v2 for GitHub releases
- Use PyPI trusted publishing (OIDC) for production releases
- Build docs with cpy314, package with cpy311
- Add checksums and documentation archive to releases
This aligns txaio with the standard workflow model used by
autobahn-python, zlmdb, and crossbar - eliminating the risk of
accidental releases from PR builds.
Note: This work was completed with AI assistance (Claude Code).1 parent 2d0ca8e commit e7d0c29
5 files changed
Lines changed: 345 additions & 217 deletions
File tree
- .audit
- .github/workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
14 | 27 | | |
15 | 28 | | |
| 29 | + | |
16 | 30 | | |
17 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
18 | 39 | | |
19 | 40 | | |
20 | 41 | | |
| 42 | + | |
| 43 | + | |
21 | 44 | | |
22 | 45 | | |
23 | 46 | | |
| |||
37 | 60 | | |
38 | 61 | | |
39 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
40 | 66 | | |
41 | 67 | | |
42 | 68 | | |
43 | 69 | | |
| 70 | + | |
44 | 71 | | |
45 | 72 | | |
46 | 73 | | |
| |||
59 | 86 | | |
60 | 87 | | |
61 | 88 | | |
62 | | - | |
63 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
64 | 97 | | |
65 | | - | |
66 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
67 | 105 | | |
68 | 106 | | |
69 | 107 | | |
| 108 | + | |
70 | 109 | | |
71 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
72 | 118 | | |
73 | 119 | | |
74 | 120 | | |
| 121 | + | |
| 122 | + | |
75 | 123 | | |
76 | 124 | | |
77 | 125 | | |
| |||
123 | 171 | | |
124 | 172 | | |
125 | 173 | | |
126 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
127 | 182 | | |
128 | 183 | | |
129 | 184 | | |
| |||
132 | 187 | | |
133 | 188 | | |
134 | 189 | | |
| 190 | + | |
| 191 | + | |
135 | 192 | | |
136 | 193 | | |
137 | 194 | | |
| |||
0 commit comments