-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (63 loc) · 1.82 KB
/
linux.yml
File metadata and controls
69 lines (63 loc) · 1.82 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
name: Test ubuntu latest
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
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
run: make run_tests_ssl
env:
PYTHON: python
- name: Valgrind tests
run: make run_tests_valgrind
env:
PYTHON: python