-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (54 loc) · 1.23 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
name: CI
on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
target: [ x86_64, armv7, aarch64 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-venv \
pipx \
curl \
pkg-config \
cmake \
libssl-dev \
build-essential
- name: Install Poetry
run: |
pipx ensurepath
pipx install poetry
- name: Install and test
run: |
poetry install --no-root
poetry run pip3 install -e .
poetry run pytest
- name: Build wheels
run: |
poetry install --no-root
poetry build
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.target }}
path: dist