File tree 2 files changed +30
-18
lines changed
2 files changed +30
-18
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ concurrency:
17
17
jobs :
18
18
check-go :
19
19
name : Check Go
20
- runs-on : ubuntu-latest-4-cores
20
+ runs-on : ubuntu-latest
21
21
strategy :
22
22
fail-fast : false
23
23
steps :
29
29
30
30
test-go :
31
31
name : Test Go
32
- runs-on : ubuntu-latest
32
+ runs-on : ubuntu-latest-4-cores
33
33
strategy :
34
34
fail-fast : false
35
35
steps :
39
39
- uses : astral-sh/setup-uv@v3
40
40
- run : ./script/test.sh go
41
41
42
+ test-go-legacy-cog :
43
+ name : Test Go with legacy Cog
44
+ runs-on : ubuntu-latest-16-cores
45
+ strategy :
46
+ fail-fast : false
47
+ steps :
48
+ - uses : actions/checkout@v4
49
+ with :
50
+ fetch-depth : 0
51
+ - uses : astral-sh/setup-uv@v3
52
+ - run : ./script/test.sh go -legacy-cog
53
+
42
54
build-python :
43
55
name : Build & verify python package
44
56
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -9,31 +9,31 @@ base_dir="$(git rev-parse --show-toplevel)"
9
9
cd " $base_dir "
10
10
11
11
test_go () {
12
- go test ./...
12
+ go test ./... " $@ "
13
13
}
14
14
15
15
test_python () {
16
16
cd " $base_dir /python"
17
17
uv sync --all-extras
18
- .venv/bin/pytest
18
+ .venv/bin/pytest " $@ "
19
19
}
20
20
21
21
if [ $# -eq 0 ]; then
22
22
test_go
23
23
test_python
24
24
else
25
- for c in " $@ " ; do
26
- case " $c " in
27
- go)
28
- test_go
29
- ;;
30
- python)
31
- test_python
32
- ;;
33
- * )
34
- echo " Unknown test $c "
35
- exit 1
36
- ;;
37
- esac
38
- done
25
+ t= $1
26
+ shift
27
+ case " $t " in
28
+ go)
29
+ test_go " $@ "
30
+ ;;
31
+ python)
32
+ test_python " $@ "
33
+ ;;
34
+ * )
35
+ echo " Unknown test $t "
36
+ exit 1
37
+ ;;
38
+ esac
39
39
fi
You can’t perform that action at this time.
0 commit comments