Initial prototype #1
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
--- | |
name: Code Quality Checks | |
on: | |
push: | |
branches: [main, development] | |
pull_request: | |
branches: [main, development] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install poetry | |
run: pip install poetry | |
- name: Install dependencies | |
run: poetry update | |
- name: Unit & Coverage test with pytest | |
run: poetry run pytest | |
- name: Check style with pylint | |
run: poetry run pylint cumulusci_jira_plugin/ tests/ | |
- name: Check format with black | |
run: poetry run black --check cumulusci_jira_plugin/ tests/ | |
- name: Check type hinting with mypy | |
run: poetry run mypy --strict --config-file=mypy.ini cumulusci_jira_plugin/ | |
- name: Check yaml style with yamllint | |
run: poetry run yamllint . -c yamllint-config.yml |