Skip to content

Commit 06d4403

Browse files
committed
CI for linux python3.8
1 parent 37fc334 commit 06d4403

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

ci/azure-linux38.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
parameters:
2+
interpreter: ''
3+
path: ''
4+
target: ''
5+
6+
steps:
7+
- bash: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
8+
displayName: rustup
9+
- bash: PATH=$(path) rustup default nightly
10+
displayName: ensure nightly
11+
- bash: PATH=$(path) pip install --user --upgrade pip wheel maturin mypy twine
12+
displayName: build dependencies
13+
- bash: PATH=$(path) pip install --user -r test/requirements.txt
14+
displayName: test dependencies
15+
- bash: PATH=$(path) pip install --user -r integration/requirements.txt
16+
displayName: integration dependencies
17+
- bash: PATH=$(path) RUSTFLAGS="-C target-feature=+sse2" maturin build --release --strip --interpreter $(interpreter) --target $(target)
18+
displayName: build
19+
- bash: PATH=$(path) pip install --user target/wheels/orjson*.whl
20+
displayName: install
21+
- bash: PATH=$(path) pytest -vrxXs test
22+
displayName: pytest
23+
- bash: PATH=$(path) mypy ./orjson.pyi
24+
displayName: mypy
25+
- bash: PATH=$(path) ./integration/run thread
26+
displayName: thread
27+
- bash: PATH=$(path) ./deploy target/wheels/*.whl
28+
displayName: deploy
29+
env:
30+
TWINE_PASSWORD: $(TWINE_PASSWORD)
31+
TWINE_USERNAME: $(TWINE_USERNAME)

ci/azure-pipelines.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ jobs:
1717
dependencies: apt
1818
- template: ./azure-sdist.yml
1919

20+
- job: linux_python38
21+
pool:
22+
vmImage: ubuntu-16.04
23+
container: python:3.8-rc-buster
24+
variables:
25+
interpreter: python3.8
26+
path: /home/vsts_azpcontainer/.local/bin:/home/vsts_azpcontainer/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
27+
target: x86_64-unknown-linux-gnu
28+
steps:
29+
- checkout: self
30+
- template: ./azure-linux38.yml
31+
2032
- job: linux_python37
2133
pool:
2234
vmImage: ubuntu-16.04

0 commit comments

Comments
 (0)