Skip to content

Instantly share code, notes, and snippets.

@rk76feWF
Created July 11, 2023 02:40
Show Gist options
  • Save rk76feWF/a4916c23b6d5cf6b7a27a699c33583cf to your computer and use it in GitHub Desktop.
Save rk76feWF/a4916c23b6d5cf6b7a27a699c33583cf to your computer and use it in GitHub Desktop.
# 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