-
Notifications
You must be signed in to change notification settings - Fork 417
35 lines (29 loc) · 1.19 KB
/
requirements-locks.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
name: Test Requirements Lockfiles Check
on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
types: [opened, reopened, synchronize]
jobs:
validate:
name: Check requirements lockfiles
runs-on: ubuntu-latest
container: ghcr.io/datadog/dd-trace-py/testrunner:47c7b5287da25643e46652e6d222a40a52f2382a@sha256:3a02dafeff9cd72966978816d1b39b54f5517af4049396923b95c8452f604269
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Fixup git permissions
# https://github.com/actions/checkout/issues/766
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Set python interpreters
run: pyenv global 3.10 3.7 3.8 3.9 3.11 3.12
- name: Install Dependencies
run: pip install --upgrade pip && pip install riot==0.20.1
- name: Generate riot locks
run: scripts/compile-and-prune-test-requirements
- name: Check git diff
run: scripts/check-diff '.riot/requirements/' 'Mismatches found between .riot/requirements/*.txt and riotfile.py. Run scripts/compile-and-prune-test-requirements and commit the result.'