-
Notifications
You must be signed in to change notification settings - Fork 211
55 lines (48 loc) · 1.71 KB
/
next.yaml
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
name: next
on: push
jobs:
python312:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
env:
PATH: /github/home/.local/bin:/github/home/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CC: "gcc"
CFLAGS: "-O2 -fno-plt"
LDFLAGS: "-O2 -Wl,--as-needed"
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
CARGO_PROFILE_RELEASE_DEBUG: "2"
CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS: "true"
CARGO_PROFILE_RELEASE_LTO: "false"
CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS: "true"
CARGO_PROFILE_RELEASE_PANIC: "unwind"
container:
image: registry.hub.docker.com/library/python:3.12-rc-bullseye
options: --user 0
steps:
- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2023-06-30 --profile minimal -y
- run: python3 -m pip install --user --upgrade pip "maturin>=1,<2" wheel
- uses: actions/checkout@v3
- name: build
run: |
maturin build --release \
--out=dist \
--features=unstable-simd,yyjson \
--compatibility off \
--interpreter python${{ matrix.python.version }} \
--target=x86_64-unknown-linux-gnu
- run: python3 -m pip install --user dist/orjson*.whl
- run: python3 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
- name: pytest
continue-on-error: true
timeout-minutes: 5
run: pytest -s -rxX -v test
- run: ./integration/run thread
continue-on-error: true
timeout-minutes: 2
- run: ./integration/run http
continue-on-error: true
timeout-minutes: 2
- run: ./integration/run init
continue-on-error: true
timeout-minutes: 2