Fix mypy errors #84
This file contains 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: Unit tests, linting, and formatting | |
on: [ push ] | |
jobs: | |
msrv: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update Rust | |
run: | | |
rustup override set stable | |
rustup update stable | |
- name: Install cargo-msrv | |
run: cargo install cargo-msrv --locked | |
- name: Check MSRV | |
run: cargo msrv verify --all-features --path framework/ | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update Rust | |
run: | | |
rustup override set stable | |
rustup update stable | |
- name: Lint | |
run: cargo clippy | |
- name: Check formatting | |
run: cargo fmt --check | |
checks: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
docker-version: [ "8_0", "8_11", "9_3" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update Rust | |
run: | | |
rustup override set stable | |
rustup update stable | |
- name: Start docker containers | |
run: docker compose up -d | |
working-directory: ./docker/${{ matrix.docker-version }} | |
- name: Run tests | |
run: cargo test --all-features |