Skip to content

Commit

Permalink
chore: introduce unit testing
Browse files Browse the repository at this point in the history
chore: introduce unit testing

* Draft test example.

For coverage on all of the attribute setters and the translation from
info dict to the attributes.

* comment about plans on senml parsing.

* linter fixes.

* Add tests for H35i and T10i.

* lint fixes.

* Update golden for H35i

* Add a pytest workflow.

* rename the workflow.

Apparently I cannot trigger it. I think it is also missing a pip install
-e .

* add installation step.

* Add a readme for the golden data generation.
  • Loading branch information
rainwoodman authored Dec 11, 2024
1 parent f7feb51 commit ec0ed65
Show file tree
Hide file tree
Showing 5 changed files with 1,801 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pytestPR.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "PyTest PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v3
- name: developer mode install
run: pip install -e .
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pytest dependencies
run: pip install pytest pytest-md pytest-emoji
- uses: pavelzw/pytest-action@v2
with:
emoji: false
verbose: false
job-summary: true
Loading

0 comments on commit ec0ed65

Please sign in to comment.