From 793cf9b40ca56f623aca39062f67ed6138745d8e Mon Sep 17 00:00:00 2001 From: Rikko Date: Wed, 31 Aug 2022 20:48:22 +0530 Subject: [PATCH] Apply diff commits for formatting and versioning --- .github/workflows/checks.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 606202f..5b8f921 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -26,17 +26,22 @@ jobs: python -m pip install --upgrade pip pip install autopep8 pip install -r test/pip_reqs.txt - - name: Apply PEP8 + - name: Apply AutoPEP8 run: | autopep8 --in-place --recursive --max-line-length=100 . - - name: Apply Version Metadata - run: | - python test/auto_apply_version_metadata.py $(git log --pretty=format:'%h' -n 1) - - name: Apply Commit + - name: Apply Auto-Formatting Commit uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: "[ci] auto-format" branch: ${{ github.head_ref }} + - name: Apply Version Metadata + run: | + python test/auto_apply_version_metadata.py $(git log --pretty=format:'%h' -n 1) + - name: Apply Version Metadata Commit + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "[ci] apply-version-metadata" + branch: ${{ github.head_ref }} - name: Execute Tests run: | python -m unittest discover -v