Refactor buildtest codebase #1590
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: Style Checks | |
on: | |
push: | |
branches: | |
- master | |
- devel | |
pull_request: | |
branches: | |
- master | |
- devel | |
jobs: | |
style_checks: | |
runs-on: ubuntu-latest | |
steps: | |
# use isort github action see | |
#https://pycqa.github.io/isort/docs/configuration/github_action.html | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.9 | |
- name: Check imports with pyflakes | |
run: | | |
pip install pyflakes | |
pyflakes buildtest tests scripts | |
- name: Running isort check | |
uses: jamescurtin/isort-action@master | |
with: | |
#requirementsFiles: "requirements.txt docs/requirements.txt" | |
sortPaths: "buildtest tests docs" | |
- name: Running black check | |
# use black github action see | |
#https://black.readthedocs.io/en/stable/integrations/github_actions.html | |
uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
src: "buildtest tests scripts" | |
- name: Run yamllint | |
run: | | |
pip install yamllint | |
yamllint -c .yamllint.yml .github .gitlab buildtest tests docs |