-
Notifications
You must be signed in to change notification settings - Fork 33
84 lines (63 loc) · 1.93 KB
/
Copy pathci.yml
File metadata and controls
84 lines (63 loc) · 1.93 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: CI
on: [push, pull_request]
jobs:
run_tests:
name: Run Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.14.3']
steps:
- name: Checkout CinderX
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Create venv
run: uv venv --python ${{ matrix.python-version }}
- name: Build CinderX
run: uv build --wheel --python ${{ matrix.python-version }}
- name: Install CinderX
run: uv pip install dist/*.whl
- name: Check CinderX loads successfully
run: |
uv run python -c 'import cinderx ; print(cinderx.get_import_error()) ; assert cinderx.is_initialized()'
- name: Install Pytest
run: uv pip install pytest
- name: Run Tests
run: uv run pytest cinderx/PythonLib/test_cinderx/test*.py
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v6
# cibuildwheel uses a docker container so the Python version is irrelevant
# here.
- uses: actions/setup-python@v6
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
build_sdist:
name: Build source distribution
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.14.3']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install build tools
run: python -m pip install build
- name: Build sdist
run: python -m build --sdist