Allow lax response parsing on Py parser (#7663) #2555
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: Dependabot post-update | |
on: | |
pull_request_target: | |
action: [opened, synchronize, reopened] | |
branches: | |
- 'master' | |
- '[0-9].[0-9]+' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
post-update: | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.4.0 | |
- name: Generate Token | |
id: generate_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.BOT_APP_ID }} | |
private_key: ${{ secrets.BOT_PRIVATE_KEY }} | |
- name: Login | |
run: | | |
echo "${{ steps.generate_token.outputs.token }}" | gh auth login --with-token | |
- name: Checkout | |
run: | | |
gh pr checkout ${{ github.event.pull_request.number }} | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
- name: Cache PyPI | |
uses: actions/cache@v2.1.7 | |
with: | |
key: post-update-${{ hashFiles('requirements/*.txt') }} | |
path: ~/.cache/pip | |
restore-keys: | | |
post-update- | |
- name: Update pip, wheel, setuptools | |
run: | | |
python -m pip install -U pip wheel setuptools | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements/dev.txt -c requirements/constraints.txt | |
- name: Run pip-compile | |
run: | | |
make compile-deps | |
- name: Check if compiled deps are changed | |
id: meta | |
run: | | |
if [[ -n "$(git status --porcelain)" ]]; then | |
echo "::set-output name=changed::true" | |
else | |
echo "::set-output name=changed::false" | |
- name: Commit and push if needed | |
if: ${{ steps.meta.values.changed == 'true' }} | |
run: | | |
git add requirements/constraints.txt | |
git commit -m "Update constraints" | |
git push |