-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
102 lines (97 loc) · 3.15 KB
/
.cirrus.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
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
95
96
97
98
99
100
101
102
env:
CIRRUS_CLONE_SUBMODULES: true
# quay.io/pypa/manylinux2014_x86_64 # CentOS 7 (use GCC 10)
# quay.io/pypa/manylinux_2_24_x86_64 # Debian (unknown)
# quay.io/pypa/manylinux_2_28_x86_64 # AlmaLinux (use clang)
linux_task:
container:
# image: quay.io/pypa/manylinux_2_28_x86_64
image: quay.io/pypa/manylinux2014_x86_64
only_if: changesInclude('.cirrus.yml', '**.{h,cpp,py}')
env:
# CC: clang
# CXX: clang++
CC: gcc
CXX: g++
PATH: /opt/python/cp310-cp310/bin:${PATH}
pip_cache:
folder: ~/.cache/pip
fingerprint_script: echo $PYTHON_VERSION
before_script: |
python -m pip install --upgrade pip
dependencies_script: |
bash tools/cibw_linux.sh
build_script: |
python -m pip install '.[test]' --verbose
test_script: |
python -m pytest tests/ --cov=primate --benchmark-skip
uninstall_script: |
python -m pip uninstall primate --yes
wheel_script: |
python -m build
install_script: |
python -m pip install dist/scikit_primate*.whl
test_post_script: |
python -m pytest tests/ --cov=primate --benchmark-skip
coverage report -m
# macos_task:
# container:
# image: ghcr.io/cirruslabs/macos-ventura-base:latest
# only_if: changesInclude('.cirrus.yml', '**.{h,cpp,py}')
# env:
# CC: clang
# CXX: clang++
# pip_cache:
# folder: ~/.cache/pip
# fingerprint_script: echo $PYTHON_VERSION
# before_script: |
# python -m pip install --upgrade pip
# python -m pip install build pytest pytest-cov pytest-benchmark
# dependencies_script: |
# bash tools/cibw_macos.sh
# build_script: |
# python -m pip install . --verbose
# test_script: |
# python -m pytest tests/ --cov=primate --benchmark-skip
# uninstall_script: |
# python -m pip uninstall primate --yes
# wheel_script: |
# python -m build
# install_script: |
# python -m pip install dist/primate*.whl
# test_post_script: |
# python -m pytest tests/ --cov=primate --benchmark-skip
# coverage report -m
# windows_task:
# windows_container:
# image: cirrusci/windowsservercore:2019
# only_if: changesInclude('.cirrus.yml', '**.{h,cpp,py}')
# setup_python_script: |
# choco install -y python311
# setup_clang_script: |
# choco install -y llvm
# clang --version
# env:
# PATH: '%PATH%;C:\ProgramData\chocolatey\bin;C:\Python311;C:\Program Files\LLVM\bin;'
# CXX: clang++
# CC: clang
# pip_depends_script: |
# python -m pip install --upgrade pip
# python -m pip install build pytest pytest-cov pytest-benchmark
# build_pkg_script: |
# python -m pip install . --verbose
# test_pkg_script: |
# python -m pytest tests/ --cov=primate --benchmark-skip
# uninstall_pkg_script: |
# python -m pip uninstall primate -y
# build_wheel_script: |
# python -m build
# install_wheel_script: |
# python -m pip install dist/primate*.whl
# test_wheel_script: |
# python -m pytest tests/ --cov=primate --benchmark-skip
# coverage report -m
# image: ghcr.io/getsentry/pypi-manylinux-amd64-ci
# image: python:slim
# image: quay.io/repository/pypa/manylinux_2_28_x86_64
# skip: "!changesInclude('.cirrus.yml', '**.{js,ts}')"