Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up a basic test and CI #12

Merged
merged 4 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading