-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Update python-build-test.yml
1 parent
ded8177
commit 4bb2344
Showing
1 changed file
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||