Skip to content

fix(ci): align Buildkite trace attributes with other Mergify plugins #2829

fix(ci): align Buildkite trace attributes with other Mergify plugins

fix(ci): align Buildkite trace attributes with other Mergify plugins #2829

Workflow file for this run

name: Continuous Integration
permissions: read-all
on:
pull_request:
branches:
- main
- devs/**
jobs:
linters:
timeout-minutes: 5
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-python@v6.2.0
with:
python-version: 3.14
- uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true
version-file: requirements-uv.txt
- name: Linters
shell: bash
run: uv run --locked poe linters
compat-tests:
timeout-minutes: 5
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-python@v6.2.0
with:
python-version: 3.14
- uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true
version-file: requirements-uv.txt
- name: Compat tests
shell: bash
run: uv run --locked poe compat-test
rust:
timeout-minutes: 10
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6.0.2
- name: Install Rust toolchain
run: |
rustup toolchain install stable --profile minimal
rustup default stable
rustup component add rustfmt clippy --toolchain stable
- uses: Swatinem/rust-cache@v2
- name: cargo fmt
run: cargo fmt --all --check
- name: cargo clippy
run: cargo clippy --all-targets --workspace -- -D warnings
- name: cargo test
run: cargo test --workspace
- name: cargo build --release
run: cargo build --release
test:
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-24.04, windows-2025, macos-15]
python: [3.13, 3.14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-python@v6.2.0
with:
python-version: ${{ matrix.python }}
- uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true
version-file: requirements-uv.txt
- name: Tests
shell: bash
env:
_MERGIFY_TEST_NEW_FLAKY_DETECTION: "true"
PYTHONUTF8: "${{ matrix.os == 'windows-2025' && 1 || 0 }}"
run: uv run --locked poe test
- name: Build
shell: bash
run: uv build
- name: Tests build
shell: bash
env:
PYTHONUTF8: "${{ matrix.os == 'windows-2025' && 1 || 0 }}"
run: |
pip install dist/*.whl
# We check the installed wheel produces a working binary, specially on Windows
# to ensure the utf8 mode is enabled.
python -c "import test_binary_build; test_binary_build.test_reexec_enables_utf8_and_prints_emoji();"
ci-gate:
if: ${{ !cancelled() }}
needs:
- test
- linters
- compat-tests
- rust
runs-on: ubuntu-latest
steps:
- name: Verify all jobs succeeded
uses: Mergifyio/gha-mergify-ci@v16
with:
action: wait-jobs
jobs: ${{ toJSON(needs) }}