|
79 | 79 | fi |
80 | 80 |
|
81 | 81 | make test-python-unit |
| 82 | + - name: Upload Python coverage to Codecov |
| 83 | + if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' |
| 84 | + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 |
| 85 | + with: |
| 86 | + file: ./coverage.xml |
| 87 | + flags: python-unit |
| 88 | + fail_ci_if_error: false |
| 89 | + env: |
| 90 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
82 | 91 | - name: Minimize uv cache |
83 | 92 | run: uv cache prune --ci |
84 | 93 |
|
| 94 | + unit-test-go: |
| 95 | + runs-on: ubuntu-latest |
| 96 | + steps: |
| 97 | + - uses: actions/checkout@v4 |
| 98 | + - name: Setup Go |
| 99 | + uses: actions/setup-go@v5 |
| 100 | + with: |
| 101 | + go-version-file: go.mod |
| 102 | + cache: true |
| 103 | + - name: Setup Python |
| 104 | + uses: actions/setup-python@v5 |
| 105 | + with: |
| 106 | + python-version: "3.11" |
| 107 | + architecture: x64 |
| 108 | + - name: Install the latest version of uv |
| 109 | + uses: astral-sh/setup-uv@v5 |
| 110 | + with: |
| 111 | + enable-cache: true |
| 112 | + - name: Install system dependencies |
| 113 | + run: | |
| 114 | + sudo apt-get update |
| 115 | + sudo apt-get install -y make protobuf-compiler libsqlite3-dev |
| 116 | + - name: Install Go proto plugins |
| 117 | + run: | |
| 118 | + go install google.golang.org/protobuf/cmd/protoc-gen-go@latest |
| 119 | + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest |
| 120 | + - name: Compile Go protobufs |
| 121 | + run: make compile-protos-go |
| 122 | + - name: Create virtual environment |
| 123 | + run: | |
| 124 | + uv venv |
| 125 | + echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH |
| 126 | + - name: Install feast locally |
| 127 | + run: make install-feast-locally |
| 128 | + - name: Run Go tests with coverage |
| 129 | + run: | |
| 130 | + CGO_ENABLED=1 go test \ |
| 131 | + -coverprofile=go/coverage.out \ |
| 132 | + -covermode=atomic \ |
| 133 | + -skip "TestGetOnlineFeatures|TestSqliteOnlineRead" \ |
| 134 | + ./go/... |
| 135 | + - name: Upload Go coverage to Codecov |
| 136 | + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 |
| 137 | + with: |
| 138 | + file: ./go/coverage.out |
| 139 | + flags: go-feature-server |
| 140 | + fail_ci_if_error: false |
| 141 | + env: |
| 142 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 143 | + |
85 | 144 | unit-test-ui: |
86 | 145 | runs-on: ubuntu-latest |
87 | 146 | env: |
|
0 commit comments