graph-force/.github/workflows/rust.yml

35 lines
646 B
YAML
Raw Normal View History

2022-11-28 18:38:17 +00:00
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
2022-11-28 18:41:57 +00:00
- 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
2022-11-28 18:38:17 +00:00
- name: Build
2022-11-28 18:41:57 +00:00
run: maturin build --verbose
2022-11-28 18:38:17 +00:00
- name: Run tests
2022-11-28 18:41:57 +00:00
run: maturin test --verbose
2022-11-28 18:38:17 +00:00
- name: Run E2E tests
2022-11-28 18:41:57 +00:00
run: |
maturin develop --release
pytest