-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into test/integration-test
- Loading branch information
Showing
10 changed files
with
572 additions
and
102 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
on: [push] | ||
|
||
permissions: | ||
contents: write | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
@@ -14,8 +17,20 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: autoformatter | ||
run: pip install autopep8 | ||
- name: autopep8 | ||
run: autopep8 --in-place --recursive . --exclude ./test | ||
- name: add commit | ||
run: | | ||
git config --global user.name 'GitHub Actions Bot' | ||
git config --global user.email '[email protected]' | ||
git add . | ||
git diff --quiet && git diff --staged --quiet || git commit -m "autopep8" | ||
- name: run tests | ||
run: | | ||
cd test | ||
pytest . -v | ||
- name: push changes | ||
run: git push | ||
|
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
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
Oops, something went wrong.