Skip to content

fix: Made use of non_null params consistent for linear quantile model… #136

fix: Made use of non_null params consistent for linear quantile model…

fix: Made use of non_null params consistent for linear quantile model… #136

Workflow file for this run

# SPDX-FileCopyrightText: 2017-2023 Contributors to the OpenSTEF project <korte.termijn.prognoses@alliander.com> # noqa E501
#
# SPDX-License-Identifier: MPL-2.0
name: Release
# Trigger when a python file is changed on main branch either from pull request or push
# but not when only setup.py is changed due to version bump
on:
push:
branches:
- 'main'
paths:
- '**.py'
- '!setup.py'
- 'requirements.txt'
jobs:
# Releases new Python version when Pull Requests are merged into "main"
release:
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
# Setup
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Bump and commit version. The upload to pypi step happens after github release.
- name: Bump version and commit bumped version back to branch
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.OPENSTEF_GITHUB_TOKEN }}
id: version
run: |
version=$(python .github/bump_version.py)
git config --global user.name 'bump_version'
git config --global user.email 'action@github.com'
git remote set-url origin "https://$GITHUB_ACCESS_TOKEN@github.com/$GITHUB_REPOSITORY"
git commit --signoff -am "Bumped minor version"
git push
echo "BUMPED_VERSION=$(echo v$version)" >> $GITHUB_ENV
echo "New version: $version"
# Create new release (does not work with standard github token, but needs PAT)
- name: Create Release
run: gh release create ${{ env.BUMPED_VERSION }} --generate-notes
env:
GITHUB_TOKEN: ${{ secrets.OPENSTEF_GITHUB_TOKEN }}