2022-11-30 10:46:44 +00:00
|
|
|
name: Regression Tests
|
2022-11-16 11:05:43 +00:00
|
|
|
|
|
|
|
env:
|
2022-11-30 10:46:44 +00:00
|
|
|
BUILD_TYPE: Debug
|
|
|
|
|
|
|
|
on:
|
2022-11-16 11:05:43 +00:00
|
|
|
schedule:
|
2022-12-01 12:04:26 +00:00
|
|
|
- cron: '0 7 */1 * *'
|
2022-11-16 11:05:43 +00:00
|
|
|
workflow_dispatch:
|
2022-11-30 10:46:44 +00:00
|
|
|
|
2022-11-16 11:05:43 +00:00
|
|
|
jobs:
|
|
|
|
build-n-test:
|
|
|
|
runs-on: ubuntu-latest
|
2022-11-30 10:46:44 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# Test of these containers
|
|
|
|
container: ["ubuntu-dev:20"]
|
2022-12-01 12:04:26 +00:00
|
|
|
timeout-minutes: 20
|
2022-11-30 10:46:44 +00:00
|
|
|
|
|
|
|
container:
|
|
|
|
image: ghcr.io/romange/${{ matrix.container }}
|
2022-11-16 11:05:43 +00:00
|
|
|
steps:
|
2022-11-30 10:46:44 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-11-16 11:05:43 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2022-11-30 10:46:44 +00:00
|
|
|
|
2022-12-01 12:04:26 +00:00
|
|
|
name: Print cpu info
|
|
|
|
cat /proc/cpuinfo
|
|
|
|
|
2022-11-30 10:46:44 +00:00
|
|
|
- name: Configure & Build
|
2022-11-16 11:05:43 +00:00
|
|
|
run: |
|
2022-11-30 10:46:44 +00:00
|
|
|
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 ..
|
|
|
|
|
2022-11-16 11:05:43 +00:00
|
|
|
- name: Run PyTests
|
|
|
|
run: |
|
2022-11-30 10:46:44 +00:00
|
|
|
ls -l ${GITHUB_WORKSPACE}/
|
|
|
|
cd ${GITHUB_WORKSPACE}/tests
|
2022-11-16 11:05:43 +00:00
|
|
|
echo "Current commit is ${{github.sha}}"
|
|
|
|
pip install -r dragonfly/requirements.txt
|
2022-11-30 10:46:44 +00:00
|
|
|
export DRAGONFLY_PATH="${GITHUB_WORKSPACE}/build/dragonfly" # used by PyTests
|
|
|
|
|
2022-11-16 11:05:43 +00:00
|
|
|
pytest -xv dragonfly
|
2022-11-30 10:46:44 +00:00
|
|
|
|
2022-11-16 11:05:43 +00:00
|
|
|
- name: Send notification on failure
|
|
|
|
if: failure()
|
|
|
|
run: |
|
|
|
|
curl -s \
|
|
|
|
-X POST \
|
|
|
|
-H 'Content-Type: application/json' \
|
|
|
|
'${{ secrets.GSPACES_BOT_DF_BUILD }}' \
|
2022-11-30 10:46:44 +00:00
|
|
|
-d '{"text": "Unforunately the tests of dragonfly build are not passed :( \n The commit is ${{github.sha}} "}'
|