-
Notifications
You must be signed in to change notification settings - Fork 999
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use dev image for running regression tests (#521)
- Loading branch information
Showing
1 changed file
with
30 additions
and
15 deletions.
There are no files selected for viewing
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
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}} "}' |