From 8693236f9ec190638a8f738ac5abd90b33cbd35a Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 20 Jan 2023 09:16:13 +0100 Subject: [PATCH] Make CI test add_*.py scripts --- .github/workflows/ci.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4d3cfa9437..227e8e9302 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -84,6 +84,21 @@ jobs: # Setting RUSTDOCFLAGS because `cargo doc --check` isn't yet implemented (https://github.com/rust-lang/cargo/issues/10025). - run: RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps + scripts: + name: "test scripts" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + override: true + - uses: Swatinem/rust-cache@v1 + - run: ./scripts/add_rule.py --name DoTheThing --code PLC999 --origin pylint + - run: cargo check + - run: ./scripts/add_plugin.py test --url https://pypi.org/project/-test/0.1.0/ + - run: cargo check + # TODO(charlie): Re-enable the `wasm-pack` tests. # See: https://github.com/charliermarsh/ruff/issues/1425 # wasm-pack-test: