-
-
Notifications
You must be signed in to change notification settings - Fork 55
35 lines (34 loc) · 1.07 KB
/
interop.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
on: [push, pull_request]
name: Interop
jobs:
interop:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: nanasess/setup-chromedriver@v2
with:
# Optional: do not specify to match Chrome's version
chromedriver-version: '114.0.5735.90'
- id: go-mod
uses: pl-strflt/uci/.github/actions/read-go-mod@main
- id: go
env:
GO_MOD_VERSION: ${{ fromJSON(steps.go-mod.outputs.json).Go }}
run: |
MAJOR="${GO_MOD_VERSION%.[0-9]*}"
MINOR="${GO_MOD_VERSION#[0-9]*.}"
echo "version=$MAJOR.$(($MINOR+1)).x" | tee -a $GITHUB_OUTPUT
- uses: actions/setup-go@v5
with:
go-version: ${{ steps.go.outputs.version }}
- name: Build interop server
run: go build -o interopserver interop/main.go
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python dependencies
run: pip install -r interop/requirements.txt
- name: Run interop tests
run: |
./interopserver &
timeout 120 python interop/interop.py