-
-
Notifications
You must be signed in to change notification settings - Fork 33
79 lines (67 loc) · 1.84 KB
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
PYTHON_VERSION: "3.12"
jobs:
tox:
name: Tox
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/[email protected]
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/[email protected]
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install tox
run: python3 -m pip install tox
- name: Run tox
run: tox
hadolint:
name: Hadolint
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/[email protected]
- name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: "Dockerfile"
failure-threshold: warning
test:
name: Test wheels ${{ matrix.arch }}-${{ matrix.abi }}-${{ matrix.tag }}
runs-on: ubuntu-latest
strategy:
matrix:
abi: ["cp312"]
tag: ["musllinux_1_2"]
arch: ["aarch64", "armhf", "armv7", "amd64", "i386"]
steps:
- name: Check out code from GitHub
uses: actions/[email protected]
- name: Write env-file
shell: bash
run: |
(
echo "GRPC_BUILD_WITH_BORING_SSL_ASM=false"
echo "GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true"
echo "GRPC_PYTHON_BUILD_WITH_CYTHON=true"
echo "CARGO_NET_GIT_FETCH_WITH_CLI=true"
) > .env_file
- name: Build wheels
uses: ./
with:
abi: ${{ matrix.abi }}
tag: ${{ matrix.tag }}
arch: ${{ matrix.arch }}
apk: "mariadb-dev;postgresql-dev;libffi-dev;openssl-dev"
skip-binary: "orjson"
env-file: True
test: True
requirements: "requirements_wheels_test.txt"