Track powerio 0.3.3 tool rename; OpenDSS distribution on-ramp #36
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: pytest (py${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # floor and ceiling of requires-python | |
| python-version: ["3.10", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install package with the powerio extra | |
| # The powerio extra makes tests/test_powerio_server.py run instead of | |
| # skip; on revisions without that extra, pip warns and proceeds. | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e '.[powerio]' pytest | |
| - name: Run tests | |
| run: python -m pytest tests/ -q |