-
Notifications
You must be signed in to change notification settings - Fork 413
35 lines (30 loc) · 1.17 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
pull_request:
types: [opened, reopened, synchronize]
merge_group:
# Trigger jobs when PR is added to merge queue
types: [checks_requested]
jobs:
validate:
name: Check requirements lockfiles
runs-on: ubuntu-latest
container: ghcr.io/datadog/dd-trace-py/testrunner@sha256:4c8afd048321e702f3605b4ae4d206fcd00e74bac708089cfe7f9c24383dc53b
steps:
- uses: actions/checkout@v4
with:
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
- 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.'