Integrate Thingsboard into Pyra #220
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: "test-python-codebase-on-main" | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "packages/core/ui/**" | |
- "packages/core/docs/**" | |
- ".gitignore" | |
- "README.md" | |
- "LICENSE.md" | |
- "netlify.toml" | |
- ".github/workflows/*.yml" | |
- "!.github/workflows/test-python-codebase-on-main.yml" | |
pull_request: | |
branches: | |
- main | |
- integration-* | |
paths-ignore: | |
- "packages/core/ui/**" | |
- "packages/core/docs/**" | |
- ".gitignore" | |
- "README.md" | |
- "LICENSE.md" | |
- "netlify.toml" | |
- ".github/workflows/*.yml" | |
- "!.github/workflows/test-python-codebase-on-main.yml" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# check-out repo and set-up python | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.10.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10.11" | |
cache: "pip" | |
- name: Install dependencies | |
run: pip install ".[dev]" | |
- name: Run Pytests | |
run: | | |
pytest -m "ci" --cov=packages tests | |
coverage report |