-
Notifications
You must be signed in to change notification settings - Fork 435
38 lines (35 loc) · 1020 Bytes
/
rust-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
name: Rust - test
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- '.github/workflows/**'
- 'python/magika/config/content_types_config.json'
- 'python/magika/models/standard_v1/model.onnx'
- 'rust/**'
- 'tests_data/features_extraction/reference.json.gz'
pull_request:
paths:
- '.github/workflows/**'
- 'python/magika/config/content_types_config.json'
- 'python/magika/models/standard_v1/model.onnx'
- 'rust/**'
- 'tests_data/features_extraction/reference.json.gz'
permissions:
contents: read
jobs:
unit-testing:
runs-on: "ubuntu-latest"
strategy:
matrix:
toolchain: ["stable", "nightly"]
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4
- run: rustup default ${{ matrix.toolchain }}
- run: rustup component add rustfmt clippy
- run: ./test.sh
working-directory: rust
- run: ./sync.sh --check
working-directory: rust