Skip to content

Commit 8eb657c

Browse files
committed
update github actions
1 parent 4a214e4 commit 8eb657c

2 files changed

Lines changed: 15 additions & 24 deletions

File tree

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ updates:
99
directory: "/" # Location of package manifests
1010
schedule:
1111
interval: "weekly"
12+
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88

99
env:
@@ -14,10 +14,8 @@ jobs:
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.
@@ -57,12 +53,9 @@ jobs:
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

Comments
 (0)