-
Notifications
You must be signed in to change notification settings - Fork 9
72 lines (57 loc) · 1.74 KB
/
test-pip-install.yaml
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
63
64
65
66
67
68
69
70
71
name: test-pip-install
on:
push:
branches:
- nightly
schedule:
# minute (0-59)
# hour (0-23)
# day of the month (1-31)
# month (1-12)
# day of the week (0-6)
# nightly test at 22:50 UTC time every day
- cron: "50 22 * * *"
workflow_dispatch:
concurrency:
group: test_pip_install-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test_pip_install:
name: ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.os }}-${{ matrix.python-version }}
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install kaldifst
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
pip3 install --verbose kaldifst
- name: Run test
shell: bash
run: |
cd kaldifst/python/tests
python3 -c "import kaldifst; print(kaldifst.__file__)"
python3 -c "import kaldifst; print(kaldifst.__version__)"
python3 -m pip install --upgrade pip pytest
pytest --ignore-glob "*k2*" --ignore-glob "*star*"