Skip to content

mc_revise_pr_type_checking_and_linting #11

mc_revise_pr_type_checking_and_linting

mc_revise_pr_type_checking_and_linting #11

Workflow file for this run

name: Python Checks
on: [pull_request]
permissions:
issues: write
pull-requests: write
jobs:
type_and_docstring_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch base and head branches
run: |
git fetch --no-tags --depth=1 origin +${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}
git fetch --no-tags --depth=1 origin +${{ github.head_ref }}:refs/remotes/origin/${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy pydocstyle
- name: Find and Check Modified Python Files
run: python util/type_and_docstyle_checking.py
env:
GITHUB_BASE_REF: ${{ github.base_ref }}
GITHUB_HEAD_REF: ${{ github.head_ref }}