-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (50 loc) · 1.46 KB
/
test.yml
File metadata and controls
62 lines (50 loc) · 1.46 KB
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
59
60
61
62
on:
push:
branches:
- "main"
pull_request:
name: "test"
jobs:
# In the future, move with unix,macos,windows tests for better
# distribution.
generic-test:
name: "Test"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout source code"
uses: "actions/checkout@v4"
- name: "Setup Rust toolchain"
uses: "dtolnay/rust-toolchain@master"
with:
toolchain: "1.89"
- name: "Use Rust cache"
uses: "Swatinem/rust-cache@v2"
with:
cache-on-failure: true
- name: "Setup Python"
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "pip"
- name: "Install dependencies"
run: |
pip install -r requirements.txt
- name: "Cargo test (root workspace)"
run: |
cargo test --workspace --all-features --exclude saya-e2e
- name: "Cargo test (bin/persistent)"
working-directory: bin/persistent
run: |
cargo test --all-features
- name: "Cargo test (bin/ops)"
working-directory: bin/ops
run: |
cargo test --all-features
- name: "Setup SSH agent for private deps"
uses: "webfactory/ssh-agent@v0.9.0"
with:
ssh-private-key: ${{ secrets.KATANA_TEE_DEPLOY_KEY }}
- name: "Cargo test (bin/persistent-tee)"
working-directory: bin/persistent-tee
run: |
cargo test --all-features