Skip to content

Build release zip.

Build release zip. #13

Workflow file for this run

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.11
- name: Run tests
run: |
export PYTHONPATH=src/modules
python -m unittest discover tests
- name: Build zip
run: |
mkdir dist
mkdir dist/pyscript
cp -R src/* dist/pyscript/
zip -r agile-powerwall.zip dist/*
- name: Release zips
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
agile-powerwall.zip