redis-shake工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
1.1 KiB

name: CI
on: [ push, pull_request ]
jobs:
black-box-test:
runs-on: ubuntu-latest
strategy:
matrix:
redis-version: [ 5, 6, 7 ]
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: clone and make redis
run: |
sudo apt-get install git
git clone https://github.com/redis/redis
cd redis
git checkout ${{ matrix.redis-version }}.0
make -j
mkdir bin
cp src/redis-server bin/redis-server
echo "$GITHUB_WORKSPACE/redis/bin" >> $GITHUB_PATH
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: make redis-shake
run: |
sh build.sh
- name: test
run: |
cd test
pip3 install -r requirements.txt
python3 main.py