Skip to content

Commit c384c4c

Browse files
committed
fix
1 parent bca5d55 commit c384c4c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/test_fortran.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ jobs:
1212
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'cmbant/camb')
1313

1414
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v4
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
fetch-depth: 0
1719

1820
- name: Set up Python
1921
uses: actions/setup-python@v5

.github/workflows/tests.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ name: tests
33
on: [push, pull_request]
44

55
jobs:
6-
tests:
6+
python_tests:
77
runs-on: ubuntu-latest
8-
if: >
9-
(matrix.os == 'ubuntu-latest' || !startsWith(github.ref, 'refs/heads/test')) &&
10-
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != 'cmbant/camb')
8+
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != 'cmbant/camb')
119
strategy:
1210
fail-fast: false
1311
matrix:
@@ -25,6 +23,7 @@ jobs:
2523
steps:
2624
- uses: actions/checkout@v4
2725
with:
26+
submodules: recursive
2827
fetch-depth: 0
2928

3029
- name: Set up Python ${{ matrix.python-version }}
@@ -49,7 +48,6 @@ jobs:
4948
python --version
5049
gfortran --version
5150
pip install -e .
52-
chmod +x fortran/tests/run_tests.sh
5351
5452
- name: Run tests
5553
run: |

fortran/tests/run_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
set -e
22

3+
python --version
4+
gfortran --version
5+
36
pushd fortran
47

58
make clean

0 commit comments

Comments
 (0)