-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.22 KB
/
Copy pathtest_python.yml
File metadata and controls
56 lines (46 loc) · 1.22 KB
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
name: Test conecta-python
on:
# allows to be called from other workflow
workflow_call:
workflow_dispatch:
push:
paths-ignore:
- '*.md'
branches:
- master
pull_request:
paths-ignore:
- '*.md'
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v6
- name: Setup rust
working-directory: conecta-python
run: |
rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} && rustup component add rustfmt
- run: cargo fmt --check
working-directory: conecta-python
- run: cargo test --lib --bins --tests --verbose
working-directory: conecta-python
- name: Install uv
uses: astral-sh/setup-uv@v7
- uses: actions/checkout@v6
- name: Copy README.md to conecta-python for maturin
run: |
cp README.md conecta-python/README.md
- name: Install dependencies
working-directory: conecta-python
run: uv sync --dev
- name: Run tests
working-directory: conecta-python
run: uv run pytest