Ci uplift #2
Workflow file for this run
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: Python Lint and Type Check | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install flake8 mypy black | |
- name: Set execute permission for build.sh and dist.sh | |
run: | | |
chmod +x ./scripts/lint.sh | |
chmod +x ./scripts/type_check.sh | |
- name: Run Linting | |
run: ./scripts/lint.sh | |
- name: Run Type Checks | |
run: ./scripts/type_check.sh |