-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (41 loc) · 1.14 KB
/
test.yaml
File metadata and controls
53 lines (41 loc) · 1.14 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
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
- name: Install cargo-sort
uses: taiki-e/install-action@v2
with:
tool: cargo-sort
- name: Formatting
run: |
rustup component add rustfmt
cargo fmt --all --manifest-path rust/Cargo.toml -- --check
- name: Run cargo sort --check
working-directory: ./rust
run: cargo sort --check --workspace
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install test assets
run: |
./script/setup_test_bambam.sh
./script/setup_test_bambam_osm.sh
- name: Cargo test
run: |
cargo test --workspace --verbose --manifest-path rust/Cargo.toml
- name: End-to-end GTFS BAMBAM test
run: |
cargo build -r --manifest-path rust/Cargo.toml
./script/run_gtfs_test.sh