38 lines
788 B
YAML
38 lines
788 B
YAML
name: distribution-gate
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
distribution-gate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Rust toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
|
|
- name: Install Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Quality checks
|
|
run: |
|
|
cargo test --locked
|
|
cargo fmt --all -- --check
|
|
cargo clippy --all-targets --all-features --locked -- -D warnings
|
|
cargo build --locked --release
|
|
|
|
- name: Distribution gate
|
|
run: python3 scripts/release-gate.py
|