build(deps): update itertools requirement from 0.11.0 to 0.12.0 #50
Workflow file for this run
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: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
fmt: | |
name: rustfmt check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
profile: default | |
- run: git ls-files | grep -P '.*\.rs$' | xargs rustfmt +nightly --check | |
lint: | |
name: clippy lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
stability: | |
- "" | |
- "--release" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{matrix.toolchain}} | |
profile: default | |
default: true | |
- uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
args: --all ${{matrix.stability}} | |
name: debug${{matrix.stability}} | |
test: | |
name: unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
stability: | |
- "" | |
- "--release" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{matrix.toolchain}} | |
profile: default | |
default: true | |
override: true | |
- name: cargo test | |
if: ${{ matrix.toolchain != 'nightly' || matrix.stability != '' }} | |
run: "cargo test --all ${{matrix.stability}}" | |
- name: cargo test | |
if: ${{ matrix.toolchain == 'nightly' && matrix.stability == '' }} | |
run: "cargo test --no-fail-fast --all" | |
env: | |
CARGO_INCREMENTAL: "0" | |
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off' | |
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off' | |
- id: coverage | |
name: coverage report | |
if: ${{ matrix.toolchain == 'nightly' && matrix.stability == '' }} | |
uses: actions-rs/[email protected] | |
- name: upload to codecov | |
if: ${{ matrix.toolchain == 'nightly' && matrix.stability == '' }} | |
uses: codecov/[email protected] | |
with: | |
files: ${{ steps.coverage.outputs.report }} |