chore: add shorthand name #185
Workflow file for this run
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: Python test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
python-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- run: pip install -r ./reductionml-python/dev-requirements.txt | |
- run: black --check ./reductionml-python/python/ ./reductionml-python/tests/ | |
- uses: PyO3/maturin-action@v1 | |
with: | |
command: build | |
args: --manifest-path reductionml-python/Cargo.toml | |
- run: pip install --no-index --find-links target/wheels reductionml | |
- run: mypy -m reductionml | |
- run: stubtest reductionml | |
- run: pytest reductionml-python/tests/ |