Support for separate tariff pricing for plunge pricing events. #75
This file contains 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 | |
jobs: | |
tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.12 | |
- name: Run tests | |
run: | | |
export PYTHONPATH=src/modules | |
python -m pip install --upgrade pip | |
python -m pip install jenkspy | |
python -m unittest discover tests | |
- name: Build zip | |
run: | | |
wget -O jenkspy.zip https://github.com/pulquero/jenkspy/archive/refs/heads/master.zip | |
unzip jenkspy.zip | |
mkdir dist | |
mkdir dist/pyscript | |
mkdir dist/pyscript_packages | |
cp -R src/* dist/pyscript/ | |
cp -R jenkspy-master/jenkspy dist/pyscript_packages/ | |
cd dist | |
zip -r agile-powerwall.zip * -x "*/__pycache__/*" "*/__pycache__/" | |
- name: Release zips | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
dist/agile-powerwall.zip |