Skip to content

Merge pull request #8 from gilbertgong/ggong/consumption-prep #25

Merge pull request #8 from gilbertgong/ggong/consumption-prep

Merge pull request #8 from gilbertgong/ggong/consumption-prep #25

Workflow file for this run

name: Python test and release to PYPI
on: [push, pull_request]
jobs:
test:
uses: openclimatefix/.github/.github/workflows/python-test.yml@main
with:
pytest_cov_dir: solar_and_storage
python-version: "['3.10']"
python_path: './solar_and_storage'
os_list: '["ubuntu-latest"]'
publish:
needs: ["test"]
if: github.ref_name == 'main'
uses: openclimatefix/.github/.github/workflows/python-release.yml@main
secrets:
token: ${{ secrets.PYPI_API_TOKEN }}
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}