Skip to content

Commit

Permalink
added quality
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnnsrs committed Jan 31, 2024
1 parent f2a43d7 commit 88a4931
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Container Build
name: Container Build

on:
push:
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Python Code Quality and Style Check
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ruff:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: [1.4]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run Poetry Install
run: poetry install
- name: Run Ruff
run: poetry run ruff .
mypy:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: [1.4]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run Poetry Install
run: poetry install
- name: Run Mypy
run: poetry run mypy .
black:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: [1.4]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run Poetry Install
run: poetry install
- name: Run black
run: poetry run black --check .

0 comments on commit 88a4931

Please sign in to comment.