Skip to content

Commit 829be38

Browse files
committed
CI: add Cirrus CI jobs
Run the tests on a few different Linux and Python distributions.
1 parent 6845f90 commit 829be38

9 files changed

+87
-0
lines changed

.cirrus.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
test_template: &test
2+
test_script:
3+
- command -v python3
4+
- python3 --version
5+
- python3 -m pip install .[test]
6+
- python3 -m pytest
7+
8+
alpine-3_task:
9+
container:
10+
dockerfile: ci/alpine-3.docker
11+
cpu: 1
12+
<< : *test
13+
14+
archlinux_task:
15+
container:
16+
dockerfile: ci/archlinux.docker
17+
cpu: 1
18+
<< : *test
19+
20+
debian-11_task:
21+
container:
22+
dockerfile: ci/debian-11.docker
23+
cpu: 1
24+
<< : *test
25+
26+
debian-unstable_task:
27+
container:
28+
dockerfile: ci/debian-unstable.docker
29+
cpu: 1
30+
<< : *test
31+
32+
fedora-37_task:
33+
container:
34+
dockerfile: ci/fedora-37.docker
35+
cpu: 1
36+
<< : *test
37+
38+
manylinux-python3.11_task:
39+
container:
40+
dockerfile: ci/manylinux.docker
41+
cpu: 1
42+
env:
43+
PATH: "/opt/python/cp311-cp311/bin/:${PATH}"
44+
<< : *test
45+
46+
manylinux-python3.7_task:
47+
container:
48+
dockerfile: ci/manylinux.docker
49+
cpu: 1
50+
env:
51+
PATH: "/opt/python/cp37-cp37m/bin/:${PATH}"
52+
<< : *test
53+
54+
miniconda_task:
55+
container:
56+
dockerfile: ci/miniconda.docker
57+
cpu: 1
58+
<< : *test
59+
60+
opensuse-15_task:
61+
container:
62+
dockerfile: ci/opensuse-15.docker
63+
cpu: 1
64+
<< : *test

ci/alpine-3.docker

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 20221203
2+
FROM alpine:3
3+
RUN apk add --no-cache python3-dev py3-pip build-base ninja git patchelf

ci/archlinux.docker

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 20221203
2+
FROM archlinux:latest
3+
RUN pacman -Sy && pacman -S --noconfirm python python-pip gcc ninja git patchelf

ci/debian-11.docker

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 20221203
2+
FROM debian:bullseye
3+
RUN apt-get update && apt-get install -y git ninja-build patchelf python3-pip && rm -rf /var/lib/apt/lists/*

ci/debian-unstable.docker

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 20221203
2+
FROM debian:unstable
3+
RUN apt-get update && apt-get install -y git ninja-build patchelf python3-pip && rm -rf /var/lib/apt/lists/*

ci/fedora-37.docker

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 20221203
2+
FROM fedora:37
3+
RUN dnf -y update && dnf -y install python3-devel python3-pip gcc ninja-build git patchelf && dnf clean all

ci/manylinux.docker

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# 20221203
2+
FROM quay.io/pypa/manylinux_2_28_x86_64

ci/miniconda.docker

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 20221203
2+
FROM continuumio/miniconda3
3+
RUN apt-get update && apt-get install -y gcc ninja-build git patchelf && rm -rf /var/lib/apt/lists/*

ci/opensuse-15.docker

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 20221203
2+
FROM opensuse/leap:latest
3+
RUN zypper --non-interactive install python310 python310-pip python310-devel gcc ninja git patchelf && zypper clean --all && ln -s python3.10 /usr/bin/python3

0 commit comments

Comments
 (0)