File tree Expand file tree Collapse file tree 5 files changed +23
-52
lines changed Expand file tree Collapse file tree 5 files changed +23
-52
lines changed Original file line number Diff line number Diff line change 8989 # https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
9090 strategy :
9191 matrix :
92- msrv : [1.56.1] # 2021 edition requires 1.56
92+ msrv : [1.40.0]
9393 name : ubuntu / ${{ matrix.msrv }}
9494 steps :
9595 - uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches : [main]
4+ pull_request :
5+ name : coverage
6+ jobs :
7+ test :
8+ runs-on : ubuntu-latest
9+ container :
10+ image : xd009642/tarpaulin:develop-nightly
11+ options : --security-opt seccomp=unconfined
12+ steps :
13+ - uses : actions/checkout@v2
14+ - name : Generate code coverage
15+ run : |
16+ cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --run-types Doctests --run-types Tests --out Xml
17+ - name : Upload to codecov.io
18+ uses : codecov/codecov-action@v2
19+ with :
20+ fail_ci_if_error : true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8282 command : test
8383 args : --release --test loom
8484 env :
85- LOOM_MAX_PREEMPTIONS : 2
85+ LOOM_MAX_PREEMPTIONS : 3
8686 RUSTFLAGS : " --cfg loom"
Original file line number Diff line number Diff line change 8585 with :
8686 command : test
8787 args : --locked --all-features --all-targets
88- coverage :
89- runs-on : ubuntu-latest
90- name : ubuntu / stable / coverage
91- steps :
92- - uses : actions/checkout@v3
93- with :
94- submodules : true
95- - name : Install stable
96- uses : actions-rs/toolchain@v1
97- with :
98- profile : minimal
99- toolchain : stable
100- components : llvm-tools-preview
101- - name : cargo install cargo-llvm-cov
102- uses : taiki-e/install-action@cargo-llvm-cov
103- - name : cargo generate-lockfile
104- if : hashFiles('Cargo.lock') == ''
105- uses : actions-rs/cargo@v1
106- with :
107- command : generate-lockfile
108- - name : cargo llvm-cov
109- run : cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
110- - name : Upload to codecov.io
111- uses : codecov/codecov-action@v2
112- with :
113- fail_ci_if_error : true
88+ # continue using our own coverage.yml for now to get doctest checking
You can’t perform that action at this time.
0 commit comments