Skip to content

Commit

Permalink
Add GitHub workflow for compile-only integration tests
Browse files Browse the repository at this point in the history
.github/workflows/gcclassic-compile-tests.yml
- Workflow YAML file that invokes a set of compile-only tests
  (i.e. integration tests with "-s none")
  NOTE: Further updates may be necessary to tweak this.

CHANGELOG.md
- Updated accordingly

Signed-off-by: Bob Yantosca <[email protected]>
  • Loading branch information
yantosca committed Mar 7, 2024
1 parent d3edf17 commit 42759a9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/gcclassic-compile-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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, Release]
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 /test -s none -e ~/.bashrc
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ 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 integrationt tests

## [14.3.0] - 2024-02-07
### Changed
- Updated GEOS-Chem submodule to 14.3.0
Expand Down

0 comments on commit 42759a9

Please sign in to comment.