name: Run Unit Tests

on:
  workflow_dispatch:
  workflow_call:

jobs:
  run-unit-tests:
    name: Run Unit Tests
    runs-on: ubuntu-latest

    steps:

      - name: Checkout repository
        uses: actions/checkout@v6

      - name: Check and install GCC version
        run: ./ci_scripts/check_gcc_version.sh

      - name: Run Unit Tests
        run: cd tests && ./run_tests.sh
