v1.12.1 geoips_tropics - VERSION RELEASE - vis improvements, doc outline #1
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: Black Pull Request | |
defaults: | |
run: | |
shell: bash | |
on: | |
# Triggers the workflow when pull request created and updated | |
pull_request: | |
# Sequence of patterns matched against refs/heads | |
branches: | |
- main | |
# Allows run of this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
check_code_black: | |
runs-on: ${{ vars.RUNNER }} | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "pypy-3.10" | |
check-latest: true | |
- name: Checkout plugin current branch | |
uses: actions/checkout@master | |
- name: Update pip | |
run: pip install --upgrade pip | |
- name: Install black | |
run: pip install black | |
- name: Checkout plugin current branch | |
uses: actions/checkout@v3 | |
- name: Checkout geoips active branch | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ vars.ORGANIZATION }}/geoips | |
ref: ${{ vars.GEOIPS_ACTIVE_BRANCH }} | |
token: ${{ secrets.GEOIPS_TOKEN }} | |
path: geoips_dev_utils | |
sparse-checkout: | | |
tests/utils | |
.config | |
- name: Run code check script black | |
shell: bash -l {0} | |
run: | | |
echo "::group::black_analysis" | |
echo "BLACK analysis of code" | |
./geoips_dev_utils/tests/utils/check_code.sh black . | |
ret=$? | |
echo "Return code: ${ret}" | |
echo "::endgroup::" | |
if [[ "${ret}" != *"0"* ]]; then | |
echo "::error::due to black violations, return code ${ret}" | |
exit 1 | |
fi |