fix(deps): Bump honeybee-energy to 1.100.22 #2376
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, pull_request] | |
jobs: | |
test: | |
name: Pass tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: dummy test passing | |
run: | |
python ./pass_tests.py | |
deploy: | |
name: Deploy to GitHub and PyPI | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' && github.repository_owner == 'ladybug-tools' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: set up node # we need node for for semantic release | |
uses: actions/[email protected] | |
with: | |
node-version: 14.17.0 | |
- name: install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r dev-requirements.txt | |
- name: install semantic-release | |
run: | |
npm install @semantic-release/exec | |
- name: run semantic release | |
id: new_release | |
run: | | |
nextRelease="`npx semantic-release@^17.0.0 --dryRun | grep -oP 'Published release \K.*? ' || true`" | |
npx semantic-release@^17.0.0 | |
echo "::set-output name=tag::$nextRelease" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
- name: Update lbt-dragonfly | |
if: contains(steps.new_release.outputs.tag, '.') | |
env: | |
DISPATCH_REPO: ladybug-tools/lbt-dragonfly | |
DEPS_TOKEN: ${{ secrets.DEPS_UPDATING }} | |
run: | | |
curl -X POST https://api.github.com/repos/$DISPATCH_REPO/dispatches \ | |
-H "Accept: application/vnd.github.everest-preview+json" \ | |
-d '{"event_type": "lbt_honeybee_release", "client_payload": {"version": "${{ steps.new_release.outputs.tag }}"}}' \ | |
-u ladybugbot:$DEPS_TOKEN | |
- name: sleep for 5 minutes for PyPI update | |
if: contains(steps.new_release.outputs.tag, '.') | |
run: sleep 300s | |
shell: bash | |
- name: Update lbt-recipes | |
if: contains(steps.new_release.outputs.tag, '.') | |
env: | |
DISPATCH_REPO: ladybug-tools/lbt-recipes | |
DEPS_TOKEN: ${{ secrets.DEPS_UPDATING }} | |
run: | | |
curl -X POST https://api.github.com/repos/$DISPATCH_REPO/dispatches \ | |
-H "Accept: application/vnd.github.everest-preview+json" \ | |
-d '{"event_type": "lbt_honeybee_release", "client_payload": {"version": "${{ steps.new_release.outputs.tag }}"}}' \ | |
-u ladybugbot:$DEPS_TOKEN | |
- name: Update pollination-lbt-honeybee | |
if: contains(steps.new_release.outputs.tag, '.') | |
env: | |
DISPATCH_REPO: pollination/lbt-honeybee | |
DEPS_TOKEN: ${{ secrets.DEPS_UPDATING }} | |
run: | | |
curl -X POST https://api.github.com/repos/$DISPATCH_REPO/dispatches \ | |
-H "Accept: application/vnd.github.everest-preview+json" \ | |
-d '{"event_type": "lbt_honeybee_release", "client_payload": {"version": "${{ steps.new_release.outputs.tag }}"}}' \ | |
-u ladybugbot:$DEPS_TOKEN |