33on :
44 push :
55 branches :
6- - master
6+ - main
77 pull_request :
88
99env :
1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@v2
17- - uses : actions-rs/ toolchain@v1
17+ - uses : dtolnay/rust- toolchain@stable
1818 with :
19- toolchain : stable
20- profile : minimal
2119 components : rustfmt
2220 - name : Check rust formatting (rustfmt)
2321 run : cargo fmt --all -- --check
@@ -26,16 +24,14 @@ jobs:
2624 runs-on : ubuntu-latest
2725 steps :
2826 - uses : actions/checkout@v2
29- - uses : actions-rs/ toolchain@v1
27+ - uses : dtolnay/rust- toolchain@stable
3028 with :
31- toolchain : stable
32- profile : minimal
3329 components : clippy
3430 - run : cargo clippy --all
3531
3632 build :
3733 needs : [fmt] # don't wait for clippy as fails rarely and takes longer
38- name : python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }}
34+ name : python${{ matrix.python-version }} ${{ matrix.platform.os }}
3935 runs-on : ${{ matrix.platform.os }}
4036 strategy :
4137 fail-fast : false # If one platform fails, allow the rest to keep testing.
5753 architecture : x64
5854
5955 - name : Install Rust toolchain
60- uses : actions-rs/ toolchain@v1
56+ uses : dtolnay/rust- toolchain@stable
6157 with :
62- toolchain : stable
6358 target : ${{ matrix.platform.rust-target }}
64- profile : minimal
65- default : true
6659
6760 - name : Build without default features
6861 run : cargo test --no-default-features --verbose --target ${{ matrix.platform.rust-target }}
@@ -83,21 +76,14 @@ jobs:
8376 target
8477 key : coverage-cargo-${{ hashFiles('**/Cargo.toml') }}
8578 continue-on-error : true
86- - name : install cargo-llvm-cov
87- run : |
88- wget https://github.com/taiki-e/cargo-llvm-cov/releases/download/v${CARGO_LLVM_COV_VERSION}/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz -qO- | tar -xzvf -
89- mv cargo-llvm-cov ~/.cargo/bin
90- env :
91- CARGO_LLVM_COV_VERSION : 0.1.9
92- - uses : actions-rs/toolchain@v1
79+ - name : Install cargo-llvm-cov
80+ uses : taiki-e/install-action@cargo-llvm-cov
81+ - uses : dtolnay/rust-toolchain@stable
9382 with :
94- toolchain : nightly
95- override : true
96- profile : minimal
9783 components : llvm-tools-preview
9884 - run : |
9985 cargo llvm-cov clean
100- cargo llvm-cov --lcov --output-path coverage.lcov
86+ cargo llvm-cov --codecov --output-path codecov.json
10187 - uses : codecov/codecov-action@v2
10288 with :
103- file : coverage.lcov
89+ file : codecov.json
0 commit comments