Skip to content

Commit

Permalink
Merge pull request #12 from USEPA/test
Browse files Browse the repository at this point in the history
Set up a basic test and CI
  • Loading branch information
Huite authored Oct 26, 2024
2 parents d37aa50 + 048c89a commit afc1f77
Show file tree
Hide file tree
Showing 6 changed files with 281 additions and 41 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: ci

on:
pull_request:
branches: [ '*' ]

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

jobs:
build:
name: build-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
steps:
- name: Check out repo
uses: actions/checkout@v4

- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
manifest-path: pixi.toml

- name: Setup gfortran
uses: fortran-lang/setup-fortran@v1
with:
compiler: gcc

- name: Build GFLOW executable
run: pixi run build-release-gfortran

- name: Run Tests
run: pixi run test
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@
*.egg-info

# Visual Studio Code
.vscode/settings.json
.vscode/settings.json

# Python byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
3 changes: 3 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,12 @@ src = [
'src/wlserv.for',
]
incdir = include_directories('./src')
project_bin_dir = join_paths(meson.current_source_dir(), 'bin')
executable(
'gflow2',
sources: [main_file] + src,
include_directories: incdir,
fortran_args : compile_args,
install: true,
install_dir: project_bin_dir,
)
Loading

0 comments on commit afc1f77

Please sign in to comment.