Skip to content

Commit

Permalink
Update unittest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
j-z10 authored Apr 4, 2024
1 parent 436d7c9 commit babcd22
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,22 @@ jobs:
pep8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
- name: Check out repository
uses: actions/checkout@v4
with:
python-version: 3.12
- name: Install Python dependencies
run: |
python -m pip install poetry
poetry install --sync --with dev
- name: Lint with flake8
run: |
poetry run flake8 . --count
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: autopep8
id: autopep8
uses: j-z10/autopep8@669deac37f8d1de9629679e31ba700a35eebd042
with:
args: --exit-code --recursive --in-place .
- name: Fail if autopep8 detected issues
if: steps.autopep8.outputs.exit-code == 2
uses: actions/github-script@v7
with:
script: |
core.setFailed('Code style issues found.')
test:
needs: pep8
Expand Down

0 comments on commit babcd22

Please sign in to comment.