Skip to content

Commit 38e04b1

Browse files
committed
Configs. Tests now work and more expansive. Fix link in docs
1 parent 9e4a059 commit 38e04b1

18 files changed

Lines changed: 110 additions & 26 deletions

.github/workflows/install_and_test.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
runs-on: ubuntu-latest
1919
name: install_and_test
2020
steps:
21-
- uses: actions/checkout@v4
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
2223

2324
# Setup system
2425
- name: NetCDF
@@ -42,7 +43,8 @@ jobs:
4243
repository: 'nichollsh/SOCRATES'
4344
path: 'SOCRATES'
4445

45-
- uses: actions/cache@v4
46+
- name: Restore SOCRATES from cache
47+
uses: actions/cache@v4
4648
id: cache-socrates
4749
with:
4850
path: |
@@ -51,7 +53,7 @@ jobs:
5153
SOCRATES/set_rad_env
5254
key: socrates-${{ hashFiles('SOCRATES/version') }}
5355

54-
- name: Build SOCRATES
56+
- name: Build SOCRATES if required
5557
if: steps.cache-socrates.outputs.cache-hit != 'true'
5658
run: |
5759
export LD_LIBRARY_PATH=""
@@ -69,18 +71,17 @@ jobs:
6971
julia --project=. -e 'using Pkg; Pkg.build()'
7072
7173
# Run the tests
72-
- name: Test AGNI
74+
- name: Run AGNI test suite
7375
run: |
7476
export RAD_DIR="/home/runner/work/AGNI/AGNI/SOCRATES"
7577
export LD_LIBRARY_PATH=""
7678
julia --project=. -e 'using Pkg; Pkg.test()'
7779
78-
# Upload result if tests fail
80+
# Upload output dir for inspection by user
7981
- name: Upload result as artifact
80-
if: failure()
8182
uses: actions/upload-artifact@v4
8283
with:
83-
name: test-failure-artifact
84+
name: test-artifact
8485
path: |
8586
out/*
8687

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
## Overview
2727
AGNI's primary purpose is to simulate the atmospheric temperature-, height-, and compositional-structures of atmospheres overlying magma oceans. It does this while ensuring that radiative-convective equilibrium is maintained throughout the atmosphere. SOCRATES is used to perform correlated-k radiative transfer including: shortwave irradiation from the star, surface emission, line absorption, Rayleigh scattering, parameterised clouds, and collisional absorption. Mixing length theory is used to parametrise convection. AGNI also supports real gas equations of state, self-gravitation, and various spectral surface compositions. Accounting for these energy transport processes permits an energy-conserving calculation of atmospheric structure, obtained using numerical optimisation, which also yields realistic cooling rates for young rocky planets with magma oceans.
2828

29-
Consult the [AGNI documentation](https://www.h-nicholls.space/AGNI/) for information about the model.
29+
Consult the [AGNI documentation](https://www.h-nicholls.space/AGNI/) for information about the model, including usage, functionality, and how to contribute.
3030

3131
Contact: see information on [my website homepage](https://www.h-nicholls.space/).
3232

docs/src/contributors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ I would like to thank the following people for their assistance during the ongoi
88
* [Arjun Savel](https://www.arjunsavel.com/) -- JOSS paper reviewer
99
* [Ryan Macdonald](https://distantworlds.space/) -- JOSS paper reviewer
1010
* [Boding Ouyang](https://github.com/OYBDOOO)
11+
* [Stuart Daines](https://scholar.google.com/citations?user=EZqVB7wAAAAJ)
1112

1213
Please contact [Harrison Nicholls](https://www.h-nicholls.space/) for any queries relating to AGNI.

docs/src/manual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Software manual
22

33
## Contributing
4-
If you are interested in contributing to the model, please see the [contributing](@ref) page
4+
If you are interested in contributing to the model, please see the [contributing](contributing.md) page
55

66
## Code reference (API)
77

0 commit comments

Comments
 (0)