Skip to content

update crates for publishing #26

update crates for publishing

update crates for publishing #26

Workflow file for this run

name: tests
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10']
env:
PYTHON: ${{ matrix.python-version }}
SHOW_PLOTS: false
steps:
- uses: actions/checkout@v3
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust unit tests
run: |
cd rust/
cargo test
- name: Python unit tests
run: |
pip install maturin pytest
pip install .
pytest tests/ -v
- name: Python functional tests
run: |
python applications/demos/bel_demo.py
python applications/demos/conv_demo.py
python applications/demos/set_speed_train_sim_demo.py
python applications/demos/sim_manager_demo.py
python applications/demos/rollout_demo.py