Skip to content

Fixed imports in docker services #13

Fixed imports in docker services

Fixed imports in docker services #13

name: esgf-consumer-check
on:
push:
paths:
- 'esgf-consumer/**'
pull_request:
paths:
- 'esgf-consumer/**'
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-consumer
pip install poetry
poetry install --only black
poetry run black ./ --verbose --check
- name: Run mypy
run: |
cd esgf-consumer
pip install poetry
poetry install
poetry run mypy .
- name: Run bandit
run: |
cd esgf-consumer
pip install poetry
poetry install --only bandit
poetry run bandit -c pyproject.toml -r .
- name: Run isort
run: |
cd esgf-consumer
pip install poetry
poetry install --only isort
poetry run isort . --check
- name: Run ruff
run: |
cd esgf-consumer
pip install poetry
poetry install --only ruff
poetry run ruff check
- name: Run audit
run: |
cd esgf-consumer
pip install poetry
poetry self add poetry-audit-plugin
poetry audit
- name: Run xenon
run: |
cd esgf-consumer
pip install poetry
poetry install --only xenon
poetry run xenon . -a A -b A -m A