-
Notifications
You must be signed in to change notification settings - Fork 34
43 lines (39 loc) · 1.03 KB
/
modeling-py-ci.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
name: Modeling Python CI
on:
pull_request:
paths:
- 'wren-modeling-py/**'
- 'wren-modeling-rs/**'
defaults:
run:
working-directory: wren-modeling-py
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
./wren-modeling-py/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install poetry
run: pipx install poetry
- name: Install dependencies
run: poetry install --no-root
- name: Test Rust and Python code
run: |
cargo test
poetry run maturin develop
poetry run pytest