test: add stubtest and pytest #15
Workflow file for this run
This file contains hidden or 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: ci (python) | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - encoderfile-py/** | |
| pull_request: | |
| paths: | |
| - encoderfile-py/** | |
| workflow_dispatch: | |
| jobs: | |
| test_python: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Project setup | |
| uses: ./.github/actions/project-setup | |
| with: | |
| # use MSRV | |
| python_version: "3.10" | |
| - name: Build runtime | |
| run: cargo build -p encoderfile-runtime | |
| - name: Install Maturin | |
| run: cargo binstall maturin | |
| - name: Maturin develop | |
| run: just build-py | |
| - name: Test | |
| run: just test-py | |
| - name: Stubtest | |
| run: just stubtest |