Skip to content

Moved example scripts into proper integration tests #151

Moved example scripts into proper integration tests

Moved example scripts into proper integration tests #151

name: Continuous Integration v2.x
#trigger when these occur
on:
push:
branches:
- v2
pull_request:
types:
- opened
- edited
- reopened
branches:
- v2
workflow_dispatch:
#CI workflows using the matrix strategy
jobs:
run-test-cases:
continue-on-error: true
strategy:
matrix:
platforms:
- { os: ubuntu-latest, preinstall: sudo apt-get install gdb, gdb_enabled: true }
- { os: windows-latest, preinstall: , gdb_enabled: true }
- { os: macos-latest, preinstall: , gdb_enabled: false }
commands:
- { exec: make test-cases, gdb: false }
- { exec: make test-cases-gdb, gdb: true }
runs-on: ${{ matrix.platforms.os }}
steps:
#skip the gdb tests on platforms that lack gdb support
- if: matrix.commands.gdb == true && matrix.platforms.gdb_enabled == false
run: exit 0
- uses: actions/checkout@v4
- name: Preinstall dependencies
run: ${{ matrix.platforms.preinstall }}
- name: run the tests
run: ${{ matrix.commands.exec }}
run-test-integrations:
needs: run-test-cases
continue-on-error: true
strategy:
matrix:
platforms:
- { os: ubuntu-latest, preinstall: sudo apt-get install gdb, gdb_enabled: true }
- { os: windows-latest, preinstall: , gdb_enabled: true }
- { os: macos-latest, preinstall: , gdb_enabled: false }
commands:
- { exec: make test-integrations, gdb: false }
- { exec: make test-integrations-gdb, gdb: true }
runs-on: ${{ matrix.platforms.os }}
steps:
#skip the gdb tests on platforms that lack gdb support
- if: matrix.commands.gdb == true && matrix.platforms.gdb_enabled == false
run: exit 0
- uses: actions/checkout@v4
- name: Preinstall dependencies
run: ${{ matrix.platforms.preinstall }}
- name: run the tests
run: ${{ matrix.commands.exec }}
run-test-benchmarks:
if: false #Not ready yet
needs: run-test-integrations
continue-on-error: true
strategy:
matrix:
platforms:
- { os: ubuntu-latest, preinstall: sudo apt-get install gdb, gdb_enabled: true }
- { os: windows-latest, preinstall: , gdb_enabled: true }
- { os: macos-latest, preinstall: , gdb_enabled: false }
commands:
- { exec: make test-benchmarks, gdb: false }
- { exec: make test-benchmarks-gdb, gdb: true }
runs-on: ${{ matrix.platforms.os }}
steps:
#skip the gdb tests on platforms that lack gdb support
- if: matrix.commands.gdb == true && matrix.platforms.gdb_enabled == false
run: exit 0
- uses: actions/checkout@v4
- name: Preinstall dependencies
run: ${{ matrix.platforms.preinstall }}
- name: run the tests
run: ${{ matrix.commands.exec }}