parent
926587450e
commit
4fb890aa37
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/build.yaml
Normal file
23
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
- name: Install Python dependencies
|
||||||
|
run: pip install -r requirements.txt
|
||||||
|
- name: Set up Rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: Install Rust dependencies
|
||||||
|
run: cargo fetch
|
||||||
|
- name: Check formatting
|
||||||
|
run: cargo fmt --check
|
||||||
|
- name: Build
|
||||||
|
run: maturin develop
|
||||||
|
- name: Python tests
|
||||||
|
run: pytest tests/*.py
|
||||||
|
- name: Rust tests
|
||||||
|
run: cargo test
|
Loading…
Add table
Add a link
Reference in a new issue