Changed update test #68
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: Setup | |
run: | | |
pipx install poetry | |
- name: Run black | |
run: | | |
cd esgf-generator | |
poetry install --only black | |
poetry run black ./ --verbose --check | |
- name: Run mypy | |
run: | | |
cd esgf-generator | |
poetry install --with mypy | |
poetry run mypy . | |
- name: Run bandit | |
run: | | |
cd esgf-generator | |
poetry install --only bandit | |
poetry run bandit -c pyproject.toml -r . | |
- name: Run isort | |
run: | | |
cd esgf-generator | |
poetry install --only isort | |
poetry run isort . --check | |
- name: Run ruff | |
run: | | |
cd esgf-generator | |
poetry install --only ruff | |
poetry run ruff check | |
- name: Run audit | |
run: | | |
cd esgf-generator | |
poetry self add poetry-audit-plugin | |
poetry audit | |
- name: Run xenon | |
run: | | |
cd esgf-generator | |
poetry install --only xenon | |
poetry run xenon -a $(poetry run python -c "import tomllib; f = open('pyproject.toml','rb') ; data = tomllib.load(f); f.close(); print(data['tool']['quality']['mccabe']['average'])") -b $(poetry run python -c "import tomllib; f = open('pyproject.toml','rb') ; data = tomllib.load(f); f.close(); print(data['tool']['quality']['mccabe']['block'])") -m $(poetry run python -c "import tomllib; f = open('pyproject.toml','rb') ; data = tomllib.load(f); f.close(); print(data['tool']['quality']['mccabe']['module'])") . |