-
Notifications
You must be signed in to change notification settings - Fork 27
81 lines (77 loc) · 2.57 KB
/
tests.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Django test suite
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# This job aggregates all matrix results and is used for a GitHub required status check.
test_results:
if: ${{ always() }}
runs-on: ubuntu-22.04
name: Test Results
needs: [test]
steps:
- run: |
result="${{ needs.test.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
exit 1
fi
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- crdb-version: v23.1.27
- crdb-version: v23.1.27
use_psycopg2: psycopg2
- crdb-version: v23.1.27
use_server_side_binding: server_side_binding
- crdb-version: v23.2.12
- crdb-version: v23.2.12
use_psycopg2: psycopg2
- crdb-version: v23.2.12
use_server_side_binding: server_side_binding
- crdb-version: v24.1.5
- crdb-version: v24.1.5
use_psycopg2: psycopg2
- crdb-version: v24.1.5
use_server_side_binding: server_side_binding
- crdb-version: v24.2.3
- crdb-version: v24.2.3
use_psycopg2: psycopg2
- crdb-version: v24.2.3
use_server_side_binding: server_side_binding
- crdb-version: v24.3.2
- crdb-version: v24.3.2
use_psycopg2: psycopg2
- crdb-version: v24.3.2
use_server_side_binding: server_side_binding
- crdb-version: v25.1.0-alpha.1
- crdb-version: v25.1.0-alpha.1
use_psycopg2: psycopg2
- crdb-version: v25.1.0-alpha.1
use_server_side_binding: server_side_binding
# Uncomment to enable testing of CockroachDB nightly.
- crdb-version: LATEST
- crdb-version: LATEST
use_psycopg2: psycopg2
- crdb-version: LATEST
use_server_side_binding: server_side_binding
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install system packages for Django's Python test dependencies
run: |
sudo apt-get update
sudo apt-get install binutils gdal-bin
- name: Run build.sh
run: bash django-test-suite/build.sh ${{ matrix.crdb-version }}
env:
USE_PSYCOPG2: ${{ matrix.use_psycopg2 }}
USE_SERVER_SIDE_BINDING: ${{ matrix.use_server_side_binding }}