Added utils with common models/settings #6
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: esgf-generator-check | |
on: | |
push: | |
paths: | |
- 'esgf-generator/**' | |
pull_request: | |
paths: | |
- 'esgf-generator/**' | |
jobs: | |
quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Run black | |
run: | | |
cd esgf-generator | |
pip install poetry | |
poetry install --only black | |
poetry run black ./ --verbose --check | |
- name: Run mypy | |
run: | | |
cd esgf-generator | |
pip install poetry | |
poetry install | |
poetry run mypy . | |
- name: Run bandit | |
run: | | |
cd esgf-generator | |
pip install poetry | |
poetry install --only bandit | |
poetry run bandit -c pyproject.toml -r . -s B311,B501 | |
- name: Run isort | |
run: | | |
cd esgf-generator | |
pip install poetry | |
poetry install --only isort | |
poetry run isort . --check | |
- name: Run ruff | |
run: | | |
cd esgf-generator | |
pip install poetry | |
poetry install --only ruff | |
poetry run ruff check | |
- name: Run audit | |
run: | | |
cd esgf-generator | |
pip install poetry | |
poetry self add poetry-audit-plugin | |
poetry audit | |
- name: Run xenon | |
run: | | |
cd esgf-generator | |
pip install poetry | |
poetry install --only xenon | |
poetry run xenon . -a A -b A -m A |