forked from genlayerlabs/genvm
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (82 loc) · 2.54 KB
/
queue.yaml
File metadata and controls
87 lines (82 loc) · 2.54 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: GenVM full
on:
merge_group:
defaults:
run:
shell: bash -x {0}
env:
GCS_BUCKET: "gh-af"
jobs:
initial:
uses: ./.github/workflows/incl_initial.yaml
secrets: inherit
module-test-python:
needs: [initial]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Get source
uses: ./.github/actions/get-src
with:
load_submodules: "false"
with_nix: "true"
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: ./support/ci/pipelines/test-python.sh
module-test-rust:
needs: [initial]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: insightsengineering/disk-space-reclaimer@v1
with:
tools-cache: false
swap-storage: false
docker-images: false
- name: Get source
uses: ./.github/actions/get-src
with:
load_submodules: "true"
with_nix: "true"
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Set up Cloud SDK # needed for gcloud to upload runners to GCS for caching
uses: google-github-actions/setup-gcloud@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- run: |
echo core | sudo tee /proc/sys/kernel/core_pattern
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
docker build --progress=plain modules/webdriver/
TAG=$(docker build -q modules/webdriver/)
docker run -p 4444:4444 --rm -d $TAG && \
./support/ci/pipelines/test-rust.sh && ./support/ci/cargo-clippy.sh
env:
OPENAIKEY: ${{ secrets.OPENAIKEY }}
HEURISTKEY: ${{ secrets.HEURISTKEY }}
ANTHROPICKEY: ${{ secrets.ANTHROPICKEY }}
XAIKEY: ${{ secrets.XAIKEY }}
GEMINIKEY: ${{ secrets.GEMINIKEY }}
validate-end:
runs-on: ubuntu-latest
if: ${{ always() }}
needs:
- initial
- module-test-python
- module-test-rust
steps:
- name: check
run: |
results="${{ join(needs.*.result, ' ') }}"
echo "$results"
if echo "$results" | grep -qiE '(failure|cancelled)'; then
echo "One or more jobs failed/cancelled"
exit 1
fi