.github: update codecov config
It's quite a bit out-of-date and presently failing
@@ -134,53 +134,22 @@ jobs:
command: test
args: --all-features -- --test-threads 1
- coverage:
- name: Code Coverage
+ codecov:
runs-on: ubuntu-latest
steps:
- - name: Checkout repository
- uses: actions/checkout@v2
-
- - name: Cache cargo registry
- uses: actions/cache@v1
- with:
- path: ~/.cargo/registry
- key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
-
- - name: Cache cargo index
- uses: actions/cache@v1
- with:
- path: ~/.cargo/git
- key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}
-
- - name: Cache cargo build
- uses: actions/cache@v1
- with:
- path: target
- key: ${{ runner.os }}-coverage-cargo-build-target-${{ hashFiles('Cargo.lock') }}
-
- - name: Install stable toolchain
- uses: actions-rs/toolchain@v1
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
with:
toolchain: stable
+ profile: minimal
override: true
-
- - name: Install libudev-dev
- run: sudo apt-get update && sudo apt-get install libudev-dev
-
- - name: Run cargo-tarpaulin
- uses: actions-rs/tarpaulin@v0.1
+ - run: sudo apt-get update && sudo apt-get install libudev-dev
+ - uses: actions-rs/tarpaulin@v0.1
with:
- version: 0.11.0
- args: --all-features -- --test-threads 1
-
- - name: Upload to codecov.io
- uses: codecov/codecov-action@v1.0.2
- with:
- token: ${{secrets.CODECOV_TOKEN}}
-
- - name: Archive code coverage results
- uses: actions/upload-artifact@v1
+ version: latest
+ args: --all --all-features -- --test-threads 1
+ - uses: codecov/codecov-action@v2
+ - uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml
