-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (54 loc) · 1.69 KB
/
Copy pathbuild-golang-ubuntu.yaml
File metadata and controls
65 lines (54 loc) · 1.69 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
---
name: Ubuntu build
on: [push]
jobs:
call-lint:
uses: ./.github/workflows/lint-on-ubuntu.yaml
build:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
fail-fast: true
matrix:
go-version: [1.22.x]
python3_version: [ "3.11", "3.12" ]
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: go.sum
- name: Install dependencies
run: go get .
- name: Test with Go
run: go test -timeout 40s -run ^TestHello$ gotdf_python -count=1 # go test
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python3_version }}
# FIXME: Add more caching
- name: Configure gopy / dependencies, and build wheel
run: |
./ci-build.sh
- uses: actions/cache/restore@v4
with:
path: dist/otdf_python-0.1.12-py3-none-any.whl
key: ${{ runner.os }}${{ matrix.python3_version }}-data-${{ github.sha }}
- uses: actions/cache/save@v4
with:
path: dist/otdf_python-0.1.12-py3-none-any.whl
key: ${{ runner.os }}${{ matrix.python3_version }}-data-${{ github.sha }}
restore-keys: |
${{ runner.os }}${{ matrix.python3_version }}-data-
integration-test:
strategy:
fail-fast: true
matrix:
python3_version: [ "3.11", "3.12" ]
needs: build
uses: ./.github/workflows/platform-integration-test.yaml
with:
wheel: dist/otdf_python-0.1.12-py3-none-any.whl
python_version: ${{ matrix.python3_version }}