diff --git a/.github/workflows/test_fortran.yml b/.github/workflows/test_fortran.yml index e9e88de1..afa86d0a 100644 --- a/.github/workflows/test_fortran.yml +++ b/.github/workflows/test_fortran.yml @@ -12,8 +12,10 @@ jobs: if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'cmbant/camb') steps: - - name: Checkout code - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 057c0737..ba330c62 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,11 +3,9 @@ name: tests on: [push, pull_request] jobs: - tests: + python_tests: runs-on: ubuntu-latest - if: > - (matrix.os == 'ubuntu-latest' || !startsWith(github.ref, 'refs/heads/test')) && - (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != 'cmbant/camb') + if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != 'cmbant/camb') strategy: fail-fast: false matrix: @@ -25,6 +23,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + submodules: recursive fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} @@ -49,7 +48,6 @@ jobs: python --version gfortran --version pip install -e . - chmod +x fortran/tests/run_tests.sh - name: Run tests run: | diff --git a/fortran/tests/run_tests.sh b/fortran/tests/run_tests.sh index eee121a5..0ad209e8 100755 --- a/fortran/tests/run_tests.sh +++ b/fortran/tests/run_tests.sh @@ -1,5 +1,8 @@ set -e +python --version +gfortran --version + pushd fortran make clean