test: add test_api_contracts with Editor/Document method coverage check #124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust Test | |
| permissions: {} | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ["main"] | |
| paths-ignore: | |
| - "doc/**" | |
| - "**/*.md" | |
| - ".github/workflows/static-checks.yml" | |
| - ".pre-commit-config.yaml" | |
| pull_request: | |
| paths-ignore: | |
| - "doc/**" | |
| - "**/*.md" | |
| - ".github/workflows/static-checks.yml" | |
| - ".pre-commit-config.yaml" | |
| schedule: | |
| - cron: "20 14 * * *" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| cargo-test: | |
| name: Cargo Test (${{ matrix.rust }}) | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.rust == 'beta' }} | |
| strategy: | |
| matrix: | |
| rust: [stable, beta] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.10" | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # master | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - name: Run cargo test | |
| run: cargo test --no-default-features |