-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.41 KB
/
ci-pr.yml
File metadata and controls
49 lines (41 loc) · 1.41 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
name: "Deploy PR"
on:
pull_request:
types: [labeled, synchronize, opened, reopened]
concurrency:
group: pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
build:
if: contains(github.event.pull_request.labels.*.name, 'deploy')
uses: ./.github/workflows/_build.yml
secrets: inherit
deploy:
if: contains(github.event.pull_request.labels.*.name, 'deploy')
needs: build
uses: ./.github/workflows/_deploy.yml
with:
image_tag: '${{ needs.build.outputs.image_tag }}@${{ needs.build.outputs.image_digest }}'
deployment_name: vela-pr${{ github.event.pull_request.number }}
environment: dev
domain: pr${{ github.event.pull_request.number }}.dev.kernel-labs.org
vector_host_path: false
database_size: '5Gi'
secrets: inherit
test:
if: contains(github.event.pull_request.labels.*.name, 'deploy')
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
- run: pip install '.[test]'
- name: Run API tests
env:
VELA_API_URL: https://pr${{ github.event.pull_request.number }}.dev.kernel-labs.org/vela
VELA_KEYCLOAK_URL: https://pr${{ github.event.pull_request.number }}.dev.kernel-labs.org
BRANCH_TIMEOUT_SEC: '900'
run: pytest -v --timeout=1200