Remove gas fees model dependency on functions #67
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: Check for forbidden licenses | |
# Checks for any forbidden/copyleft licenses using their SPDX identifiers | |
# (https://spdx.org/licenses/) | |
# To check Python packages, pip-licenses (https://github.com/raimon49/pip-licenses) is used to | |
# generate a listing of packages and their associated licenses. This listing is checked against a | |
# regex in FORBIDDEN_LICENSE_CHECK to ensure no forbidden licenses are present. If any are detected, the build is failed. | |
# List of copyleft licenses derived from Blue Oak Council Guide to Copyleft | |
# (https://blueoakcouncil.org/copyleft) | |
# List of forbidden licenses derived from Google License Classifier | |
# (https://github.com/google/licenseclassifier) | |
on: | |
pull_request: | |
branches: | |
- trunk | |
- release-* | |
jobs: | |
license-check: | |
name: license check | |
runs-on: ubuntu-latest | |
env: | |
GOVER: 1.17 | |
FORBIDDEN_LICENSE_CHECK: | | |
grep -E "GPL|CC-BY-SA|CC-BY-NC|CC-BY-NC-SA|CC-BY-NC-ND|APSL|CPAL|EUPL|NPOSL|OSL|SSPL|Parity|RPL|QPL|Sleepycat|copyleft|CDDL|CPL|EPL|ErlPL|IPL|MS-RL|SPL|Facebook|Commons-Clause" | grep . && exit 1 || echo "ok" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install gardener packages | |
working-directory: gardener | |
run: | | |
pip install -r requirements.txt | |
- name: Install pip-licenses | |
working-directory: gardener | |
run: | | |
pip install pip-licenses | |
- name: Check gardener package licenses | |
working-directory: gardener | |
run: | | |
pip-licenses |& ${{ env.FORBIDDEN_LICENSE_CHECK }} |