Skip to content

renamed altrios_py to altrios_pyo3 to disambiguate #2

renamed altrios_py to altrios_pyo3 to disambiguate

renamed altrios_py to altrios_pyo3 to disambiguate #2

Workflow file for this run

name: py-tests
on:
push:
branches: [ main ]
paths:
- "python/**"
- "rust/**"
pull_request:
paths:
- "python/**"
- "rust/**"
workflow_dispatch:
workflow_call:
jobs:
call-rust-tests:
uses: nrel/altrios/.github/workflows/rust-tests.yaml@main
test:
needs: call-rust-tests
if: github.repository == 'nrel/altrios' || github.repository == 'nrel/altrios-private'
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 --workspace
cd altrios-core/
cargo test
- name: Python unit tests
run: |
pip install maturin pytest
pip install -e ".[dev]"
pytest python/altrios -s