Repository navigation
62 lines (59 loc) · 1.73 KB
/
Copy pathpython-compatibility.yml
File metadata and controls
62 lines (59 loc) · 1.73 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
name: Python compatibility
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
jobs:
cpu:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
python-version: "3.8"
treelite: "treelite==4.1.2"
- os: ubuntu-latest
python-version: "3.12"
treelite: "treelite>=4.1.2,<5"
- os: ubuntu-latest
python-version: "3.12"
treelite: "treelite==4.1.2"
- os: ubuntu-latest
python-version: "3.13"
treelite: "treelite>=4.1.2,<5"
- os: ubuntu-latest
python-version: "3.14"
treelite: "treelite>=4.1.2,<5"
- os: windows-latest
python-version: "3.12"
treelite: "treelite>=4.1.2,<5"
- os: windows-latest
python-version: "3.12"
treelite: "treelite==4.1.2"
- os: windows-latest
python-version: "3.14"
treelite: "treelite>=4.1.2,<5"
defaults:
run:
shell: bash
env:
OMP_NUM_THREADS: "2"
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
- name: Build distributions
run: |
python -m pip install --upgrade pip build
python -m build
- name: Install wheel and test dependencies
run: python -m pip install dist/*.whl pytest '${{ matrix.treelite }}'
- name: Run test suite
working-directory: ${{ runner.temp }}
run: python -m pytest -q -rs "$GITHUB_WORKSPACE/tests"