Remove use of actor registry and inject dependencies #59
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: Poupool | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -y --no-install-recommends mosquitto | |
| uv sync | |
| - name: Lint with pre-commit | |
| run: | | |
| uv run pre-commit run -a | |
| - name: Test with pytest | |
| run: | | |
| uv run pytest --cov=controller --cov-report term test/ | |
| - name: Test start the application | |
| run: | | |
| uv run python poupool.py --fake-devices --test-start | |
| - name: Upload coverage report | |
| run: | | |
| uv run codecov | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |