-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.24 KB
/
test.yml
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
50
51
52
53
54
55
56
57
58
name: Tests
on:
workflow_call:
push:
branches: [main]
paths-ignore: ["**.md"]
tags-ignore: ["*"] # we run a test before release
pull_request:
paths-ignore: ["**.md"]
env:
CARGO_TERM_COLOR: always
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
jobs:
create_model:
uses: ./.github/workflows/create_model.yml
secrets: inherit
suite:
name: Suite
needs: [create_model]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup problem matchers
uses: r7kamura/rust-problem-matchers@v1
- run: rustup toolchain install stable --profile minimal
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Install necessary tools
uses: taiki-e/install-action@v2
with:
tool: cargo-make,cargo-nextest
- name: Download model artifact
uses: actions/download-artifact@v4
with:
name: model
- name: Run Rustfmt
run: cargo make format-ci
- name: Run Clippy
run: cargo make lint-ci
- name: Run tests
run: cargo make test
- name: Build release
run: cargo build --release --all-features