-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from harp-tech/gl-dev
Add CI pipeline and code coverage
- Loading branch information
Showing
5 changed files
with
60 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from harp.io import REFERENCE_EPOCH, MessageType, read | ||
from harp.reader import create_reader | ||
from harp.schema import read_schema | ||
|
||
__all__ = ["REFERENCE_EPOCH", "MessageType", "read", "create_reader", "read_schema"] |
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
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
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