-
Notifications
You must be signed in to change notification settings - Fork 20
42 lines (33 loc) · 922 Bytes
/
python.yml
File metadata and controls
42 lines (33 loc) · 922 Bytes
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
name: CI for python
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
CARGO_BUILD_JOBS: 1
strategy:
matrix:
python-version:
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: Install Python dependencies
run: uv sync --no-install-project
- name: Install maturin into test venv
run: uv pip install --python .venv/bin/python maturin
- name: Build and install deckgym bindings into venv
run: .venv/bin/maturin develop --features python
- name: Run tests
run: .venv/bin/pytest python/deckgym/tests