Start sensor automatically in prod but not locally (#61) #280
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: Pyright | |
on: | |
push: | |
workflow_dispatch: # Allows manual triggering of the workflow | |
jobs: | |
uv-example: | |
runs-on: ubuntu-latest | |
name: python | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
- name: "Set up Python" | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: ".python-version" | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- name: Install pyright | |
run: uv tool install pyright | |
- name: Run pyright | |
run: uv run pyright | |
# - name: Run docker-compose | |
# uses: hoverkraft-tech/compose-action@v2.0.1 | |
# with: | |
# compose-file: "./docker-compose.yaml" | |
# - name: Run tests | |
# # For example, using `pytest` | |
# run: uv run pytest |