diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c1ce3c3..8821fa7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,8 @@ updates: directory: "/" # Location of package manifests schedule: interval: "weekly" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddbfdf6..bf0e346 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: push: branches: - - master + - main pull_request: env: @@ -14,10 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - profile: minimal components: rustfmt - name: Check rust formatting (rustfmt) run: cargo fmt --all -- --check @@ -26,16 +24,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - profile: minimal components: clippy - run: cargo clippy --all build: needs: [fmt] # don't wait for clippy as fails rarely and takes longer - name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }} + name: python${{ matrix.python-version }} ${{ matrix.platform.os }} runs-on: ${{ matrix.platform.os }} strategy: fail-fast: false # If one platform fails, allow the rest to keep testing. @@ -57,12 +53,9 @@ jobs: architecture: x64 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable target: ${{ matrix.platform.rust-target }} - profile: minimal - default: true - name: Build without default features run: cargo test --no-default-features --verbose --target ${{ matrix.platform.rust-target }} @@ -83,21 +76,14 @@ jobs: target key: coverage-cargo-${{ hashFiles('**/Cargo.toml') }} continue-on-error: true - - name: install cargo-llvm-cov - run: | - 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 - - mv cargo-llvm-cov ~/.cargo/bin - env: - CARGO_LLVM_COV_VERSION: 0.1.9 - - uses: actions-rs/toolchain@v1 + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + - uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly - override: true - profile: minimal components: llvm-tools-preview - run: | cargo llvm-cov clean - cargo llvm-cov --lcov --output-path coverage.lcov + cargo llvm-cov --codecov --output-path codecov.json - uses: codecov/codecov-action@v2 with: - file: coverage.lcov + file: codecov.json