-
Notifications
You must be signed in to change notification settings - Fork 6
81 lines (75 loc) · 2.2 KB
/
Copy pathlinux.yml
File metadata and controls
81 lines (75 loc) · 2.2 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Test ubuntu latest
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
redis_version: ["7.2", "7.4", "unstable"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install system toolchain (LLVM/Clang, OpenSSL, build tools)
run: |
sudo apt-get update
sudo apt-get install -y llvm clang libclang-dev pkg-config libssl-dev build-essential automake libtool
- name: Export build environment
run: |
echo "LIBCLANG_PATH=$(llvm-config --libdir)" >> $GITHUB_ENV
- name: Checkout submodules
run: git submodule update --init --recursive
- name: format
run: cargo fmt -- --check
- name: clippy
run: |
MODULE_NAME=MRTESTSCLIPPY cargo clippy --all-targets --all-features
make clean
- name: Python test deps
run: |
python3 -m pip install -U pip "setuptools<81"
python3 -m pip install git+https://github.com/RedisLabsModules/RLTest@60e3290 gevent "redis>=5"
- name: install redis
run: |
git clone https://github.com/redis/redis
cd redis
git checkout ${{ matrix.redis_version }}
BUILD_TLS=yes make valgrind install
- name: install valgrind
run: |
sudo apt-get update --fix-missing
sudo apt-get install valgrind
- name: Build the dependencies
run: make build_deps
- name: Default tests
run: make run_tests
env:
PYTHON: python
- name: SSL tests
timeout-minutes: 25
run: make run_tests_ssl
env:
PYTHON: python
PYTHONUNBUFFERED: "1"
RLTEST_EXTRA_ARGS: "--test-timeout 300"
- name: Valgrind tests
run: make run_tests_valgrind
env:
PYTHON: python
- name: Upload test logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-logs-${{ matrix.redis_version }}
path: tests/mr_test_module/logs/
if-no-files-found: ignore
retention-days: 7