Merge pull request #32 from basecubedev/feature/gui-package #18
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| full-test-suite: | |
| name: Full Python test suite | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt | |
| python -m pip install pytest | |
| - name: Compile Python files | |
| run: | | |
| python -m compileall ems dashboard scripts tests emsctl.py ems-solarflow-api-control.py | |
| - name: Run full test suite | |
| run: | | |
| pytest -q tests/ | |
| simulated-regression-tests: | |
| name: Simulated power-control regression tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt | |
| python -m pip install pytest | |
| - name: Run simulated regression tests | |
| run: | | |
| pytest -q tests/ -m "simulation and power_control" |