Check formatter stability on CI (#5446)

Check formatter stability on CI using CPython. This should be merged
into the ecosystem checks, but i think this is a good start.
This commit is contained in:
konsti
2023-07-07 18:28:36 +02:00
committed by GitHub
parent 5640c310bb
commit 60d318ddcf
2 changed files with 23 additions and 15 deletions

View File

@@ -283,3 +283,17 @@ jobs:
- name: "Build docs"
if: ${{ env.MKDOCS_INSIDERS_SSH_KEY_EXISTS != 'true' }}
run: mkdocs build --strict -f mkdocs.generated.yml
check-formatter-stability:
name: "Check formatter stability"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Install Rust toolchain"
run: rustup show
- name: "Cache rust"
uses: Swatinem/rust-cache@v2
- name: "Clone CPython 3.10"
run: git clone --branch 3.10 --depth 1 https://github.com/python/cpython.git crates/ruff/resources/test/cpython
- name: "Check stability"
run: cargo run --bin ruff_dev -- format-dev --stability-check crates/ruff/resources/test/cpython