install: adjustments to support using uv between setup.sh and tasks.py #1524
This file contains hidden or 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: Daemon Checks | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "0.9.22" | |
| - name: install dependencies | |
| run: | | |
| cd daemon | |
| cp core/constants.py.in core/constants.py | |
| sed -i 's/required=True/required=False/g' core/emulator/coreemu.py | |
| uv sync | |
| - name: isort | |
| run: | | |
| cd daemon | |
| uv run isort -c --df . | |
| - name: black | |
| run: | | |
| cd daemon | |
| uv run black --check . | |
| - name: flake8 | |
| run: | | |
| cd daemon | |
| uv run flake8 . | |
| - name: grpc | |
| run: | | |
| cd daemon/proto | |
| uv run python -m grpc_tools.protoc -I . --python_out=.. --grpc_python_out=.. core/api/grpc/*.proto | |
| - name: test | |
| run: | | |
| cd daemon | |
| uv run pytest --mock tests |