Version bump #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run units tests | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install cffi and virtualenv | |
run: pip install cffi virtualenv | |
- name: Install RUST toolchain | |
uses: actions-rs/toolchain@v1 | |
id: rustup | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Build bindings | |
run: | | |
pip install maturin | |
maturin build -i python3.8 | |
- name: Install requirements | |
run: | | |
pip install -r requirements.txt | |
- name: Install bindings | |
run: | | |
pip install target/wheels/*.whl | |
- name: Test with pytest | |
run: | | |
pip install pytest | |
pytest tests.py |