chore(deps): Bump honeybee-energy to 1.107.1 #1171
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: Unit tests | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: install python dependencies | |
run: | | |
pip install -r dev-requirements.txt | |
pip install . | |
- name: run tests | |
run: python -m pytest tests/ | |
deploy: | |
name: Deploy to GitHub and PyPI | |
runs-on: ubuntu-latest | |
needs: test | |
if: github.ref == 'refs/heads/master' && github.repository_owner == 'pollination' | |
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/setup-node@v2.1.2 | |
with: | |
node-version: 22.2.0 | |
- name: install python dependencies | |
run: | | |
pip install -r dev-requirements.txt | |
pip install . | |
- name: install semantic-release | |
run: | |
npm install @semantic-release/exec | |
- name: run semantic release | |
id: new_release | |
run: | | |
nextRelease="`npx semantic-release@^23.1.1 --dryRun | grep -oP 'Published release \K.*? ' || true`" | |
npx semantic-release@^23.1.1 | |
echo "::set-output name=tag::$nextRelease" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PYPI_USERNAME: ${{ secrets.POLLINATION_PYPI_USERNAME }} | |
PYPI_PASSWORD: ${{ secrets.POLLINATION_PYPI_PASSWORD }} | |
outputs: | |
tag: ${{ steps.new_release.outputs.tag }} | |
deploy-to-staging: | |
name: Deploy to Pollination Staging | |
runs-on: ubuntu-latest | |
needs: deploy | |
if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'pollination' && contains(needs.deploy.outputs.tag, '.') }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: install python dependencies | |
run: pip install . | |
- name: deploy to staging | |
run: | | |
queenbee | |
pollination dsl push pollination-honeybee-energy --tag ${{needs.deploy.outputs.tag}} -e https://api.staging.pollination.cloud | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
QB_POLLINATION_TOKEN: ${{ secrets.POLLINATION_STAGING_LADYBUGBOT_TOKEN }} | |
deploy-to-production: | |
name: Deploy to Pollination Production | |
runs-on: ubuntu-latest | |
needs: test | |
if: github.ref == 'refs/heads/production' && github.repository_owner == 'pollination' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: install python dependencies | |
run: pip install pollination-honeybee-energy | |
- name: deploy to production | |
run: | | |
queenbee | |
pollination dsl push pollination-honeybee-energy -e https://api.pollination.cloud | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
QB_POLLINATION_TOKEN: ${{ secrets.POLLINATION_LADYBUGBOT_TOKEN }} |