Created
July 11, 2023 02:40
-
-
Save rk76feWF/a4916c23b6d5cf6b7a27a699c33583cf to your computer and use it in GitHub Desktop.
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
# bitbucket-pipelines.yml | |
image: python:3.11 | |
pipelines: | |
branches: | |
test/*: | |
- step: | |
name: Format checking with black | |
script: | |
- pip install black | |
- black --check . | |
- step: | |
name: Type checking with mypy (ignore-missing-imports) | |
script: | |
- pip install mypy | |
- mypy --ignore-missing-imports . | |
default: | |
- step: | |
name: Testing with pytest | |
script: | |
- if [ $(ls tests -1 | wc -l) -gt 1 ]; then pip install pytest && pytest .; fi | |
- step: | |
name: Format checking with black | |
script: | |
- pip install black | |
- black --check . | |
- step: | |
name: Type checking with mypy | |
script: | |
- pip install -r requirements.txt | |
- mypy . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment