Skip to content

Commit dbaa31b

Browse files
eirikurjlamkina
andauthored
Install requirements.txt for mypy if present (#26)
* Workflow for merge protection for specific named branches (#19) * Adding mypy as an option to run (#21) * adding mypy as an option to run * updates to input params * do not create a report * update call * installing requirements.txt if present locally * fix typo --------- Co-authored-by: Andrew Lamkin <25615947+lamkina@users.noreply.github.com>
1 parent 42342d7 commit dbaa31b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/branch-name-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
check-branch-name:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Check branch name for main
14+
- name: Check branch name for main
1515
if: github.base_ref == 'main'
1616
run: |
1717
BRANCH_NAME="${{ github.head_ref }}"

azure/azure_style.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ jobs:
174174
pip install wheel
175175
pip install mypy
176176
177+
# Check if the local repo has a requirements.txt file and install it if present
178+
if [[ -f "requirements.txt" ]]; then
179+
pip install -r requirements.txt
180+
fi
181+
177182
# Run mypy check (should pick up local config from mypy.ini or .mypy.ini if present)
178183
mypy
179184

0 commit comments

Comments
 (0)