-
Notifications
You must be signed in to change notification settings - Fork 126
49 lines (47 loc) · 1.56 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Tests
on:
pull_request:
branches: [main]
merge_group:
branches: [main]
push:
branches: [main]
jobs:
tests-linux:
runs-on: ubuntu-latest-16-cores
steps:
- uses: actions/checkout@v3
- name: Install deps
run: sudo apt-get -qy update && sudo apt-get install -y libssl-dev libssl1.1; sudo apt-get clean
# - name: Free Disk Space (Ubuntu)
# uses: jlumbroso/free-disk-space@main
# with:
# # this might remove tools that are actually needed,
# # if set to "true" but frees about 6 GB
# tool-cache: false
- name: Install Docker Image
run: ./.github/scripts/install-docker-images.sh
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
env:
PROPTEST_CASES: 2500
RUSTFLAGS: -D warnings -C target-feature=+avx,+avx2,+sse4.2
RUST_BACKTRACE: full
run: cargo llvm-cov --workspace --lcov --output-path lcov.txt --features integration
- name: Upload coverage to Codecov
uses: Wandalen/[email protected]
with:
action: codecov/codecov-action@v3
attempt_limit: 6
attempt_delay: 10000
with: |
files: ./lcov.txt
flags: unittests
fail_ci_if_error: ${{ github.event_name == 'pull_request' }}
verbose: true