-
Notifications
You must be signed in to change notification settings - Fork 39
94 lines (73 loc) · 2.12 KB
/
quick_test_and_codecov.yml
File metadata and controls
94 lines (73 loc) · 2.12 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
85
86
87
88
89
90
91
92
93
94
name: Quick build and test
on: push
jobs:
uv_test:
name: Test with UV
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
# - "3.15"
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Set up Python
run: uv python install
- name: Install the project
run: uv sync --group dev
- name: Run tests
run: uv run pytest
check_coverage:
name: Generate codecov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
name: Install Python
- name: Generate coverage report
run: |
pip install pytest
pip install pytest-cov
pip install -e ".[plots]"
pytest --cov=dtw --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
build_wheels:
name: Build wheels on ubuntu only
runs-on: ubuntu-latest
needs: uv_test
# if: false
steps:
- uses: actions/checkout@v6
- name: Build wheels
uses: pypa/cibuildwheel@v3.4.1
with:
extras: "uv"
env:
CIBW_SKIP: "*musllinux*"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "pytest {project}/tests"
CIBW_ARCHS: auto64
CIBW_BUILD_FRONTEND: "build[uv]"
# CIBW_ARCHS_MACOS: "x86_64 universal2"
# CIBW_ARCHS_WINDOWS: auto64
# CIBW_ARCHS_LINUX: auto64
# CIBW_TEST_SKIP: "cp311*" due to scipy not finding openblas to build from source. may be removed when 311 released.
- uses: actions/upload-artifact@v7
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true