CI: check fail result #38
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 6.2 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test-with-redis-6-2: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: clone and build redis | |
run: | | |
sudo apt-get install git | |
git clone https://github.com/redis/redis | |
cd redis | |
git checkout 6.2 | |
make -j | |
- name: start redis | |
run: | | |
./redis/src/redis-server & | |
- name: set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: install requirements | |
run: pip install -r requirements.txt | |
- name: run test | |
run: python redis_compatibility_test.py --testfile cts.json --specific-version 6.2.0 --show-failed > test.result | |
- name: check fail tests | |
run: grep -q "This is failed tests for" test.result && exit -1 || exit 0 |