-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 1.11 KB
/
Copy pathbuild-golang-macos.yaml
File metadata and controls
50 lines (40 loc) · 1.11 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
---
name: macOS build
on: [push]
defaults:
run:
shell: bash
jobs:
call-lint:
uses: ./.github/workflows/lint-on-macos.yaml
build:
runs-on: macos-13
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: |
./build-scripts/ci-build.sh
# - uses: ./.github/workflows/platform-integration-test.yaml
# with:
# wheel: dist/otdf_python-0.1.14-py3-none-any.whl