feat(proxy): optional companion param on /control/reserve and /control/mode #1562
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| name: "Python ${{ matrix.python-version }}" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: "actions/checkout@v4" | |
| with: | |
| fetch-depth: 0 # IMPORTANT: get full history so comparisons work | |
| submodules: false | |
| - uses: "actions/setup-python@v5" | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| cache: pip | |
| - name: "Install dependencies" | |
| run: | | |
| set -xe | |
| python -VV | |
| python -m site | |
| python -m pip install --upgrade pip setuptools wheel | |
| pip install --upgrade -r requirements.txt | |
| pip install --upgrade -r test_requirements.txt | |
| # Force branch + html+xml reports even if pytest.ini doesn't set them | |
| - name: Run unit tests (with coverage) | |
| env: | |
| PYTEST_ADDOPTS: "--cov=pypowerwall --cov-branch --cov-report=xml --cov-report=html" | |
| run: pytest | |
| - name: "Run test.py on ${{ matrix.python-version }}" | |
| run: "python test.py" | |
| # Upload both XML (for services/badges) and HTML (for browsing) | |
| - name: Upload coverage artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-${{ matrix.python-version }} | |
| path: | | |
| coverage.xml | |
| htmlcov/** | |
| - name: Upload to Codecov | |
| if: always() | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: coverage.xml | |
| flags: py${{ matrix.python-version }} | |
| token: ${{ secrets.CODECOV_TOKEN }} |