-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (43 loc) · 1.03 KB
/
test.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
name: Run units tests
on:
push:
branches:
- main
- develop
pull_request:
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install cffi and virtualenv
run: pip install cffi virtualenv
- name: Install RUST toolchain
uses: actions-rs/toolchain@v1
id: rustup
with:
profile: minimal
toolchain: nightly-2022-05-25
override: true
- name: Build bindings
run: |
pip install maturin
maturin build -i python3.8
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Install bindings
run: |
pip install target/wheels/*.whl
- name: Test with pytest
run: |
pip install pytest
pytest tests.py