Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Aug 21, 2024
1 parent bca5d55 commit c384c4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test_fortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -25,6 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -49,7 +48,6 @@ jobs:
python --version
gfortran --version
pip install -e .
chmod +x fortran/tests/run_tests.sh
- name: Run tests
run: |
Expand Down
3 changes: 3 additions & 0 deletions fortran/tests/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
set -e

python --version
gfortran --version

pushd fortran

make clean
Expand Down

0 comments on commit c384c4c

Please sign in to comment.