-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (48 loc) · 1.39 KB
/
tests-linux.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
name: Tests | Linux
on: [workflow_call]
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Fetch workspace members
run: git submodule update --init
- name: Install | Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: |
clippy
rustfmt
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install | Poetry
uses: abatilo/actions-poetry@v2
- name: Poetry | Config
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Poetry | Cache
uses: actions/cache@v3
with:
path: ./.venv
key: venv-linux-${{ hashFiles('poetry.lock') }}
- name: Poetry | Install
run: poetry install --no-interaction
- name: Maturin | Develop
uses: PyO3/maturin-action@v1
with:
command: develop
args: --release
- name: Matrix | Test
run: |
cargo test --release
poetry run python -m unittest discover python