Repository navigation
51 lines (46 loc) · 1.49 KB
/
Copy pathgate.yml
File metadata and controls
51 lines (46 loc) · 1.49 KB
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
42
43
44
45
46
47
48
49
50
name: Gate
# Required status checks: `verify` and `test-integrity`.
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
verify:
name: verify
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.13"
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
- name: Install dependencies
run: |
python -m pip install -r requirements-test.txt ruff==0.16.10
sudo apt-get update && sudo apt-get install -y libegl1 libopengl0
- name: scripts/verify.sh
run: scripts/verify.sh
test-integrity:
name: test-integrity
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: scripts/check-test-integrity.sh
env:
EVENT_NAME: ${{ github.event_name }}
BASE_REF: origin/${{ github.base_ref }}
PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ',') }}
run: scripts/check-test-integrity.sh