GSYE-631: Fix _calc_energy_to_buy_minimum in HP energy parameters #1198
Workflow file for this run
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: gsy-e-ci | |
on: | |
pull_request: | |
jobs: | |
test-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: 8BitJonny/gh-get-current-pr@1.3.0 | |
id: PR | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
sha: ${{ github.event.pull_request.head.sha }} | |
filterOutClosed: true | |
- name: parse integration tests branch | |
env: | |
prBody: ${{ steps.PR.outputs.pr_body }} | |
run: | | |
echo "::set-output name=PARSED_INTEGRATION_TESTS_BRANCH::$(echo -e $prBody | sed -n 's/.*\*\*INTEGRATION_TESTS_BRANCH\*\*=\([^ ]*\).*/\1/p')" | |
id: parse_branch | |
- name: validate parsed integration tests branch | |
env: | |
PARSED_INTEGRATION_TESTS_BRANCH: ${{ steps.parse_branch.outputs.PARSED_INTEGRATION_TESTS_BRANCH }} | |
run: | | |
echo "::set-output name=INTEGRATION_TESTS_BRANCH::${PARSED_INTEGRATION_TESTS_BRANCH:-master}" | |
id: validated_branch | |
- name: parse framework branch | |
env: | |
prBody: ${{ steps.PR.outputs.pr_body }} | |
run: | | |
echo "::set-output name=PARSED_GSY_FRAMEWORK_BRANCH::$(echo -e $prBody | sed -n 's/.*\*\*GSY_FRAMEWORK_BRANCH\*\*=\([^ ]*\).*/\1/p')" | |
id: parse_branch_framework | |
- name: validate parsed framework branch | |
env: | |
PARSED_GSY_FRAMEWORK_BRANCH: ${{ steps.parse_branch_framework.outputs.PARSED_GSY_FRAMEWORK_BRANCH }} | |
run: | | |
echo "::set-output name=GSY_FRAMEWORK_BRANCH::${PARSED_GSY_FRAMEWORK_BRANCH:-master}" | |
id: validated_branch_framework | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
env: | |
TOXENV: ci | |
GSY_FRAMEWORK_BRANCH: ${{ steps.validated_branch_framework.outputs.GSY_FRAMEWORK_BRANCH }} | |
INTEGRATION_TESTS_REPO: https://gsydev:${{ secrets.GSYDEV_TOKEN }}@github.com/gridsingularity/gsy-backend-integration-tests.git | |
INTEGRATION_TESTS_BRANCH: ${{ steps.validated_branch.outputs.INTEGRATION_TESTS_BRANCH }} | |
run: | | |
export SOLC_BINARY=$HOME/solc/usr/bin/solc | |
export LD_LIBRARY_PATH=$HOME/solc/usr/lib:$LD_LIBRARY_PATH | |
pip install tox==3.24.4 | |
tox -e $TOXENV --verbose | |
- name: Check coverage with Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
fail_ci_if_error: true | |
verbose: true |