35 lines
646 B
YAML
35 lines
646 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python 3.11
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.11
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
- name: Build
|
|
run: maturin build --verbose
|
|
- name: Run tests
|
|
run: maturin test --verbose
|
|
- name: Run E2E tests
|
|
run: |
|
|
maturin develop --release
|
|
pytest
|