1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00

fix: Use dev image for running regression tests (#521)

This commit is contained in:
Roman Gershman 2022-11-30 12:46:44 +02:00 committed by Roman Gershman
parent 26b03145f9
commit cd40bd76e4

View file

@ -1,34 +1,49 @@
name: Check Build
name: Regression Tests
env:
DRAGONFLY_BUILD_DIR: "${{github.workspace}}/build-dbg"
on:
BUILD_TYPE: Debug
on:
schedule:
- cron: '0 7 */3 * *'
workflow_dispatch:
jobs:
build-n-test:
runs-on: ubuntu-latest
strategy:
matrix:
# Test of these containers
container: ["ubuntu-dev:20"]
container:
image: ghcr.io/romange/${{ matrix.container }}
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
with:
submodules: true
- name: Creating build
- name: Configure & Build
run: |
sudo apt-get update
sudo apt-get install -y lsb-release ninja-build libunwind-dev libboost-fiber-dev libssl-dev autoconf-archive libtool cmake g++
./helio/blaze.sh
cd $DRAGONFLY_BUILD_DIR && ninja dragonfly
apt update && apt install -y pip
cmake -B ${GITHUB_WORKSPACE}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cd ${GITHUB_WORKSPACE}/build && ninja dragonfly
pwd
ls -l ..
- name: Run PyTests
run: |
export DRAGONFLY_PATH="${{ env.DRAGONFLY_BUILD_DIR }}/dragonfly" # used by PyTests
ls -l ${GITHUB_WORKSPACE}/
cd ${GITHUB_WORKSPACE}/tests
echo "Current commit is ${{github.sha}}"
chmod +x $DRAGONFLY_PATH
cd ${{ github.workspace }}/tests
pip install -r dragonfly/requirements.txt
export DRAGONFLY_PATH="${GITHUB_WORKSPACE}/build/dragonfly" # used by PyTests
pytest -xv dragonfly
- name: Send notification on failure
if: failure()
run: |
@ -36,4 +51,4 @@ jobs:
-X POST \
-H 'Content-Type: application/json' \
'${{ secrets.GSPACES_BOT_DF_BUILD }}' \
-d '{"text": "Unforunately the tests of dragonfly build are not passed :( \n The commit is ${{github.sha}} "}'
-d '{"text": "Unforunately the tests of dragonfly build are not passed :( \n The commit is ${{github.sha}} "}'