Skip to content

Commit 49c1a82

Browse files
committed
new CI
1 parent 5b593a6 commit 49c1a82

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/python.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
on:
2+
push:
3+
branches: [main, dev]
4+
pull_request:
5+
6+
name: Python data round trips
7+
8+
jobs:
9+
test-metadata:
10+
strategy:
11+
matrix:
12+
os: [ubuntu-24.04]
13+
rust:
14+
- stable
15+
python: [ "3.13" ]
16+
steps:
17+
- name: Cancel Previous Runs
18+
uses: styfle/[email protected]
19+
with:
20+
access_token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- uses: actions/[email protected]
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
submodules: recursive
26+
- uses: dtolnay/rust-toolchain@v1
27+
with:
28+
toolchain: ${{ matrix.rust }}
29+
- uses: Swatinem/[email protected]
30+
- name: Install the latest version of uv
31+
uses: astral-sh/setup-uv@v6
32+
with:
33+
activate-environment: true
34+
version: "latest"
35+
python-version: ${{ matrix.python }}
36+
- name: run JSON metadata example
37+
run: |
38+
cargo run --example json_metadata --features derive
39+
- name: setup Python and run tests
40+
run: |
41+
uv venv -p 3.12
42+
source .venv/bin/actvate
43+
uv pip install -r python/requirements_locked_3_13.txt
44+
python -m pytest python
45+

0 commit comments

Comments
 (0)