Merge pull request #55 from KIT-CMS/PR_fix_bash_variables #187
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: Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
python_format: | |
runs-on: ubuntu-20.04 | |
container: | |
image: rootproject/root:6.26.00-ubuntu20.04 | |
options: --user 0 # run as root | |
steps: | |
- name: apt update | |
run: apt-get -y update | |
- name: Install missing software | |
run: apt-get install -y git python3-pip && pip install black==23.3.0 | |
- uses: actions/checkout@v2 | |
- name: Check Python formatting | |
shell: bash | |
run: cd $GITHUB_WORKSPACE && bash scripts/python-formatting.sh |