Add argument checks #8
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: Build and test | |
on: | |
push: | |
branches: [ main, dev ] | |
pull_request: | |
branches: [ main, dev ] | |
workflow_dispatch: | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
shell: bash | |
run: | | |
python3 -m venv .env | |
source .env/bin/activate | |
pip install maturin | |
- name: Build | |
shell: bash | |
run: | | |
source .env/bin/activate | |
maturin develop | |
- name: Run tests | |
shell: bash | |
run: | | |
source .env/bin/activate | |
python3 example.py |