Skip to content

Clean up names, fn privacy, docstrings; add unit tests CI #13

Clean up names, fn privacy, docstrings; add unit tests CI

Clean up names, fn privacy, docstrings; add unit tests CI #13

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run Rust tests
run: cargo test --verbose
- name: Build Python
run: |
python -m pip install --upgrade pip
pip install pytest hypothesis numpy maturin
maturin build
- name: Run Python tests
working-directory: ./tokengrams
run: pytest --verbose