Skip to content

Commit

Permalink
Update python-build-test.yml
Browse files Browse the repository at this point in the history
GeekMasher authored Jan 17, 2024
1 parent ded8177 commit 4bb2344
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/python-build-test.yml
Original file line number Diff line number Diff line change
@@ -11,29 +11,29 @@ permissions:

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade black pyright
pipenv install --dev
- name: Run Tests
run: |
python -m unittest discover -v -s ./tests -p test_*.py
pipenv run tests
- name: End-2-end Tests
env:
GITHUB_TOKEN: ${{ secrets.CODEQL_TOKEN }}
run: |
./gh-codeql-summarize \
./codeql-summarize \
-i ./examples/projects.json \
-f bundle \
-o ./examples \
@@ -43,14 +43,12 @@ jobs:
- name: Lint
if: github.event_name == 'pull_request'
run: |
black .
pipenv run lint
- name: Linting Commit Update
if: github.event_name == 'pull_request'
run: |
git config --global user.name 'Git bot'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Auto Linting Code using Black" && git push || echo "No changes to commit"

0 comments on commit 4bb2344

Please sign in to comment.