Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 52 additions & 1 deletion .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,59 @@ jobs:
lint:
uses: prosegrinder/.github/.github/workflows/poetry-lint.yaml@main

mypy:
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v4
with:
submodules: true
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Setup Python
uses: actions/setup-python@v5
with:
cache: "poetry"
python-version: "3.x"
- name: Install project
run: poetry install --with dev --no-interaction
- name: MyPy
run: |
poetry run mypy src/**/*.py --config-file pyproject.toml

bandit:
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v4
with:
submodules: true
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Setup Python
uses: actions/setup-python@v5
with:
cache: "poetry"
python-version: "3.x"
- name: Install project
run: poetry install --with dev --no-interaction
- name: Bandit
run: |
poetry run bandit --configfile pyproject.toml --recursive src/**/*.py

test:
needs: lint
needs:
- lint
- mypy
- bandit
uses: prosegrinder/.github/.github/workflows/poetry-test.yaml@main

cz-dry-run:
Expand Down
Loading