Add test for parsing data from long buffer #14
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
# Builds the python environment; linter and formatting via ruff; type annotations via pyright; | |
# tests via pytest; reports test coverage via pytest-cov. | |
name: build | |
on: | |
push: | |
branches: ['*'] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build_run_tests: | |
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
if: github.event.pull_request.draft == false | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: [3.9, 3.11] | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip install -e .[dev] | |
- name: ruff | |
run: ruff check . | |
- name: pyright | |
run: pyright . | |
- name: pytest | |
run: pytest --cov harp |