-
Notifications
You must be signed in to change notification settings - Fork 27
50 lines (46 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
name: test-fast-ctc-decode
on: [push]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.78.0
default: true
- name: Rust unit tests
run: cargo test
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Python unit tests
run: |
python3 -m venv venv3
source venv3/bin/activate
python3 -m pip install maturin numpy
maturin develop -F python
python3 tests/test_decode.py
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.78.0
default: true
- name: Rust unit tests
run: cargo test --features=resolver
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Python unit tests
run: |
python -m venv venv3
venv3\Scripts\Activate.ps1
python -m pip install maturin numpy
maturin develop -F python
python tests/test_decode.py