-
-
Notifications
You must be signed in to change notification settings - Fork 281
Specify bash
shell in CI Workflows
#605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e82cfb1
fix(pythonpackage.yml): use `bash`
adam-grant-hendry 906cf00
ci: rerun workflow
adam-grant-hendry d858b96
fix(pythonpackage.yml): undo indent reformatting
adam-grant-hendry c3a446b
fix(scripts): use portable shebang
adam-grant-hendry 8557a3b
fix(scripts): use cross-platform POSIX
adam-grant-hendry 8822bf3
ci: rerun workflow
adam-grant-hendry 8176121
test(conf.py): don't set `GNUPGHOME` on Windows
adam-grant-hendry 6d59a5b
test(conf.py): remove `os.linesep`
adam-grant-hendry 7cd675f
test(test_init_command.py): use `os.sep`
adam-grant-hendry dc07120
test(bump): handle Windows path separator
adam-grant-hendry 500cf71
test(cli): skip argcomplete activation on Windows
adam-grant-hendry 9d40918
test(commit): use double-quotes
adam-grant-hendry d1a2919
test(bump_command): use `/` path separator
adam-grant-hendry 6a963a8
fix(bump.py): use `sys.stdin.isatty()`
adam-grant-hendry d936262
fix(scripts): pydocstyle and cz
adam-grant-hendry 53ac7c9
feat(scripts): add error message to `test`
adam-grant-hendry 4536f93
test(argcomplete): fix command
adam-grant-hendry 24adbcd
feat(scripts): remove `venv/bin/`
adam-grant-hendry db5131e
fix(scripts/test): use double-quotes
adam-grant-hendry 5d1eaba
ci(rerun): random `poetry` exception
adam-grant-hendry a079fe4
fix(scripts/test): MinGW64 workaround
adam-grant-hendry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,14 +1,13 @@ | ||
#!/bin/sh -e | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
export PREFIX="poetry run python -m " | ||
if [ -d 'venv' ] ; then | ||
export PREFIX="venv/bin/" | ||
fi | ||
export PREFIX='poetry run python -m ' | ||
export REGEX='^(?![.]|venv).*' | ||
|
||
${PREFIX}pytest -n 3 --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen tests/ | ||
${PREFIX}black commitizen tests --check | ||
${PREFIX}isort --check-only commitizen tests | ||
${PREFIX}flake8 commitizen/ tests/ | ||
${PREFIX}mypy commitizen/ tests/ | ||
${PREFIX}pydocstyle --convention=google --add-ignore=D1,D415 | ||
${PREFIX}pydocstyle --convention=google --add-ignore=D1,D415 --match-dir='"${REGEX}"' | ||
${PREFIX}commitizen check --rev-range origin/master.. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.