-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create lint_python.yml * Update lint_python.yml * Update lint_python.yml * pyupgrade --py36-plus __main__.py * Update tap13.py * Update lint_python.yml * Drop the {} * Double quotes * Update lint_python.yml * Update lint_python.yml * Update lint_python.yml
- Loading branch information
Showing
3 changed files
with
33 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: lint_python | ||
on: [pull_request, push] | ||
jobs: | ||
lint_python: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade safety | ||
- run: bandit --recursive . | ||
- run: black --check . | ||
- run: codespell --quiet-level=2 --skip="*.tap" # --ignore-words-list="" | ||
- run: flake8 . --max-line-length=88 --show-source --statistics | ||
- run: isort --check-only --profile black . || true | ||
- run: pip install junit_xml yamlish | ||
- run: mypy --ignore-missing-imports . | ||
- run: pytest . || true | ||
- run: pytest --doctest-modules . || true | ||
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py | ||
- run: safety check | ||
- run: | | ||
for FILENAME in test-eslint1 test-eslint2 test-eslint3 test test2 test3; do | ||
echo "Testing ${FILENAME}..." | ||
python tap2junit/tap13.py | ||
python -m tap2junit -i "test/fixtures/${FILENAME}.tap" -o "test/output/${FILENAME}.xml" | ||
cat "test/output/${FILENAME}.xml" | ||
done |
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