mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 08:37:07 +01:00
Make Type Completeness Workflow Usable for PRs from Forks (#3551)
This commit is contained in:
parent
d5a1a48145
commit
ee6c8a5995
1 changed files with 7 additions and 6 deletions
13
.github/workflows/type_completeness.yml
vendored
13
.github/workflows/type_completeness.yml
vendored
|
@ -23,17 +23,18 @@ jobs:
|
||||||
- name: Install Pyright
|
- name: Install Pyright
|
||||||
run: |
|
run: |
|
||||||
python -W ignore -m pip install pyright~=1.1.291
|
python -W ignore -m pip install pyright~=1.1.291
|
||||||
|
- name: Get PR Completeness
|
||||||
|
# Must run before base completeness, as base completeness will checkout the base branch
|
||||||
|
# And we can't go back to the PR branch after that in case the PR is coming from a fork
|
||||||
|
run: |
|
||||||
|
pip install . -U
|
||||||
|
pyright --verifytypes telegram --ignoreexternal --outputjson > pr.json || true
|
||||||
|
pyright --verifytypes telegram --ignoreexternal > pr.readable || true
|
||||||
- name: Get Base Completeness
|
- name: Get Base Completeness
|
||||||
run: |
|
run: |
|
||||||
git checkout ${{ github.base_ref }}
|
git checkout ${{ github.base_ref }}
|
||||||
pip install . -U
|
pip install . -U
|
||||||
pyright --verifytypes telegram --ignoreexternal --outputjson > base.json || true
|
pyright --verifytypes telegram --ignoreexternal --outputjson > base.json || true
|
||||||
- name: Get PR Completeness
|
|
||||||
run: |
|
|
||||||
git checkout ${{ github.head_ref }}
|
|
||||||
pip install . -U
|
|
||||||
pyright --verifytypes telegram --ignoreexternal --outputjson > pr.json || true
|
|
||||||
pyright --verifytypes telegram --ignoreexternal > pr.readable || true
|
|
||||||
- name: Compare Completeness
|
- name: Compare Completeness
|
||||||
uses: jannekem/run-python-script-action@v1
|
uses: jannekem/run-python-script-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue