Skip to content

Commit

Permalink
fix: Use dev image for running regression tests (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
romange committed Nov 30, 2022
1 parent 26b0314 commit cd40bd7
Showing 1 changed file with 30 additions and 15 deletions.
45 changes: 30 additions & 15 deletions .github/workflows/regression-tests.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,54 @@
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: |
curl -s \
-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}} "}'

0 comments on commit cd40bd7

Please sign in to comment.