mirror of
https://github.com/openai/codex.git
synced 2026-11-09 20:50:33 +00:00
add ci check for generated python
This commit is contained in:
@@ -65,6 +65,26 @@ jobs:
|
||||
- name: cargo fmt
|
||||
run: cargo fmt -- --config imports_granularity=Item --check
|
||||
|
||||
schema_fixtures:
|
||||
name: App-server schema fixtures
|
||||
runs-on: ubuntu-24.04
|
||||
needs: changed
|
||||
if: ${{ needs.changed.outputs.codex == 'true' || needs.changed.outputs.workflows == 'true' || github.event_name == 'push' }}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: codex-rs
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- uses: astral-sh/setup-uv@v6
|
||||
- uses: dtolnay/rust-toolchain@1.93.0
|
||||
- name: Regenerate app-server schema fixtures
|
||||
run: cargo run -p codex-app-server-protocol --bin write_schema_fixtures
|
||||
- name: Check vendored schema fixtures are up to date
|
||||
run: git diff --exit-code -- app-server-protocol/schema
|
||||
|
||||
cargo_shear:
|
||||
name: cargo shear
|
||||
runs-on: ubuntu-24.04
|
||||
@@ -200,6 +220,10 @@ jobs:
|
||||
with:
|
||||
targets: ${{ matrix.target }}
|
||||
components: clippy
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- uses: astral-sh/setup-uv@v6
|
||||
|
||||
- if: ${{ matrix.target == 'x86_64-unknown-linux-musl' || matrix.target == 'aarch64-unknown-linux-musl'}}
|
||||
name: Use hermetic Cargo home (musl)
|
||||
|
||||
Reference in New Issue
Block a user