Skip to content

Commit

Permalink
try full workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
n8sean committed Sep 6, 2023
1 parent b371843 commit 0606368
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ jobs:
- name: Lint with flake8
shell: bash
run: |
poetry --version
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
Expand All @@ -85,24 +84,21 @@ jobs:
- name: Run black --check --exclude=tests/data .
shell: bash
run: |
echo "pass"
# poetry run black --check --exclude=tests/data .
poetry run black --check --exclude=tests/data .
- name: If needed, commit black changes to the pull request
if: failure()
shell: bash
run: |
echo "pass"
# poetry run black --exclude=tests/data .
# git config --global user.name 'autoblack'
# git config --global user.email '1240432+jfear@users.noreply.github.com'
# git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
# git checkout $GITHUB_HEAD_REF
# git commit -am "fixup: Format Python code with Black"
# git push
poetry run black --exclude=tests/data .
git config --global user.name 'autoblack'
git config --global user.email '1240432+jfear@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout $GITHUB_HEAD_REF
git commit -am "fixup: Format Python code with Black"
git push
- name: Test with pytest
shell: bash
run: |
echo "pass"
# poetry run pytest
poetry run pytest

0 comments on commit 0606368

Please sign in to comment.