-
-
Notifications
You must be signed in to change notification settings - Fork 12
41 lines (32 loc) · 1.12 KB
/
freeze-for-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Freeze PR dependency changes
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches:
- master
paths: ["piped", "pyproject.toml", "requirements.in", "dev-requirements/*.in", "!dev-requirements/constraints.in"]
jobs:
freeze-pr-dep-changes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
submodules: "true"
- name: Set up Python 3.9
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
with:
python-version: "3.9"
- name: install prerequisites
run: |
python -m pip install --upgrade pip wheel
python -m pip install -r ./piped/python/base-requirements/nox.txt
- name: Upgrade dependency locks
run: python -m nox -s freeze-locks bot-package-diff
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
with:
name: gogo.patch
path: gogo.patch
- name: Check diff file
run: python -m nox -s is-diff-file-empty