Skip to content

Commit

Permalink
Merge PR #50 (Add GitHub Action for compile-only integration tests)
Browse files Browse the repository at this point in the history
This merge brings PR #50 (Add GitHub Action for compile-only integration
tests, by @yantosca) into the GEOS-Chem "no-diff-to-benchmark" development
stream.

This PR adds a GitHub action for compile-only integration tests to be done
on pushes and PRs.

Signed-off-by: Bob Yantosca <[email protected]>
  • Loading branch information
yantosca committed Mar 22, 2024
2 parents 150b59f + ccfb727 commit 557bd53
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gcclassic-compile-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: gcclassic-compile-tests

on: [pull_request, push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
gnu:
runs-on: ubuntu-latest
strategy:
matrix:
build_type: [Debug]
env:
CXX: g++
CC: gcc
FC: gfortran

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt update -y
sudo apt install -y libnetcdf-dev netcdf-bin libnetcdff-dev
- name: Compile-only tests
run: |
git submodule update --init --recursive
cd test/integration/GCClassic
./integrationTest.sh -d $HOME/compile-tests -t compile
cat $HOME/compile-tests/logs/results.compile.log
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This file documents all notable changes to the GEOS-Chem Classic wrapper reposit
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased] - TBD
### Added
- GitHub action to perform compile-only integration tests

### Changed
- Now use short submodule names (i.e. without the full path) in `.gitmodules`

Expand Down

0 comments on commit 557bd53

Please sign in to comment.