-
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.
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 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 |
---|---|---|
|
@@ -82,10 +82,12 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
- name: Run Ruff for code formatting | ||
run: | | ||
set -euo pipefail | ||
pip install ruff | ||
ruff check --select C408 --fix . --unsafe-fixes | ||
- name: Commit formatted code | ||
run: | | ||
set -euo pipefail | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
|
@@ -108,10 +110,13 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.py3 }} | ||
- run: | | ||
- name: install | ||
run: | | ||
set -euo pipefail | ||
pip install .[tests] | ||
- name: Run unit tests | ||
run: | | ||
set -euo pipefail | ||
pytest -vvv tests/unit/ | ||
test-wrapper-script: | ||
|
@@ -171,7 +176,7 @@ jobs: | |
fi | ||
echo "All tests passed." | ||
|
||
########################################################################### | ||
# RELEASE | ||
########################################################################### | ||
|