diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 39a2ca0..a57494d 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -39,6 +39,9 @@ jobs: run: poetry run black . - name: Run isort run: poetry run isort . --profile black + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "fix: style fixes" code-quality: needs: code-style diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a8d3bfb..0a2d310 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,26 +22,7 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v2 - code-style: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: Run image - uses: abatilo/actions-poetry@v2 - with: - poetry-version: '1.3.2' - - name: Install dependencies - run: poetry install - - name: Run black - run: poetry run black . - - name: Run isort - run: poetry run isort . --profile black - code-quality: - needs: code-style runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.gitignore b/.gitignore index 0f8b768..167bf03 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ venv/ testing/ *.xml *.prom +poetry.lock