|
85 | 85 | - name: Run tests |
86 | 86 | working-directory: ./pydgraph |
87 | 87 | run: DGRAPH_IMAGE_TAG=local make test |
88 | | - test-pydgraph-protobuf-compat: |
89 | | - name: Test Pydgraph (Python ${{ matrix.python-version }} / ${{ matrix.protobuf-version }}) |
| 88 | + test-pydgraph-protobuf-compat-dgraph-latest: |
| 89 | + name: |
| 90 | + Test Pydgraph (Python ${{ matrix.python-version }} / ${{ matrix.protobuf-version }} / DGraph |
| 91 | + Latest) |
90 | 92 | runs-on: ubuntu-latest |
91 | 93 | strategy: |
92 | 94 | matrix: |
@@ -114,3 +116,56 @@ jobs: |
114 | 116 | run: uv pip install "${{ matrix.protobuf-version }}" |
115 | 117 | - name: Run tests |
116 | 118 | run: make test |
| 119 | + test-pydgraph-protobuf-compat-dgraph-head: |
| 120 | + name: |
| 121 | + Test Pydgraph (Python ${{ matrix.python-version }} / ${{ matrix.protobuf-version }} / DGraph |
| 122 | + HEAD) |
| 123 | + runs-on: ubuntu-latest |
| 124 | + strategy: |
| 125 | + matrix: |
| 126 | + python-version: ["3.9", "3.14"] |
| 127 | + protobuf-version: |
| 128 | + - protobuf>=4.23.0,<5.0.0 |
| 129 | + - protobuf>=5.0.0,<6.0.0 |
| 130 | + steps: |
| 131 | + - name: Checkout Dgraph main latest |
| 132 | + uses: actions/checkout@v5 |
| 133 | + with: |
| 134 | + path: dgraph |
| 135 | + repository: dgraph-io/dgraph |
| 136 | + ref: main |
| 137 | + - name: Setup Go |
| 138 | + uses: actions/setup-go@v6 |
| 139 | + with: |
| 140 | + go-version-file: dgraph/go.mod |
| 141 | + - name: Build dgraph binary |
| 142 | + working-directory: ./dgraph |
| 143 | + run: make docker-image |
| 144 | + - name: Install dgraph binary |
| 145 | + working-directory: ./dgraph |
| 146 | + run: mv dgraph/dgraph ~/go/bin/dgraph |
| 147 | + - name: Checkout pydgraph |
| 148 | + uses: actions/checkout@v5 |
| 149 | + with: |
| 150 | + path: pydgraph |
| 151 | + repository: dgraph-io/pydgraph |
| 152 | + ref: ${{ github.ref }} |
| 153 | + - name: Setup python runtime and tooling |
| 154 | + uses: ./pydgraph/.github/actions/setup-python-and-tooling |
| 155 | + with: |
| 156 | + python-version: ${{ matrix.python-version }} |
| 157 | + - name: Pin python version |
| 158 | + working-directory: ./pydgraph |
| 159 | + run: uv python pin ${{ matrix.python-version }} |
| 160 | + - name: Setup project dependencies |
| 161 | + working-directory: ./pydgraph |
| 162 | + run: INSTALL_MISSING_TOOLS=true make setup |
| 163 | + - name: Sync python virtualenv |
| 164 | + working-directory: ./pydgraph |
| 165 | + run: make sync |
| 166 | + - name: Install specific protobuf version |
| 167 | + working-directory: ./pydgraph |
| 168 | + run: uv pip install "${{ matrix.protobuf-version }}" |
| 169 | + - name: Run tests |
| 170 | + working-directory: ./pydgraph |
| 171 | + run: DGRAPH_IMAGE_TAG=local make test |
0 commit comments