From 4c70d0d4ea0f3594e8ce929039526d12579c3a46 Mon Sep 17 00:00:00 2001 From: Ewan Miller Date: Fri, 12 Jul 2024 16:58:50 +0100 Subject: [PATCH 1/3] Update and rename cmake-single-platform.yml to CI-build-and-test.yml --- .../{cmake-single-platform.yml => CI-build-and-test.yml} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename .github/workflows/{cmake-single-platform.yml => CI-build-and-test.yml} (95%) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/CI-build-and-test.yml similarity index 95% rename from .github/workflows/cmake-single-platform.yml rename to .github/workflows/CI-build-and-test.yml index 78b5503..fb15ee8 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/CI-build-and-test.yml @@ -1,6 +1,6 @@ # This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage. # See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml -name: CMake on a single platform +name: CI Build & Test on: push: @@ -44,6 +44,11 @@ jobs: # Build your program with the given configuration run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + test: + runs-on: ubuntu-latest + needs: build + + steps: - name: Test working-directory: ${{github.workspace}}/build # Execute tests defined by the CMake configuration. From a2d8fef1f374ff126b5bfc333b5f2ec36584b144 Mon Sep 17 00:00:00 2001 From: Ewan Miller Date: Fri, 12 Jul 2024 17:09:25 +0100 Subject: [PATCH 2/3] nah nevermind actually --- .github/workflows/CI-build-and-test.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/CI-build-and-test.yml b/.github/workflows/CI-build-and-test.yml index fb15ee8..8bb402a 100644 --- a/.github/workflows/CI-build-and-test.yml +++ b/.github/workflows/CI-build-and-test.yml @@ -44,11 +44,6 @@ jobs: # Build your program with the given configuration run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - test: - runs-on: ubuntu-latest - needs: build - - steps: - name: Test working-directory: ${{github.workspace}}/build # Execute tests defined by the CMake configuration. From aebe4ea545dd7d620fed2a7b55a75fbb57425fe8 Mon Sep 17 00:00:00 2001 From: Ewan Miller Date: Fri, 12 Jul 2024 17:15:37 +0100 Subject: [PATCH 3/3] Add badge for passing or failing CI --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 367c6af..98d1ef9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ # nuTens -A lightweight library for calculating neutrino oscillation probabilities using tensors typically used in machine learning. \ No newline at end of file +A lightweight library for calculating neutrino oscillation probabilities using tensors typically used in machine learning. + +[![example workflow](https://github.com/ewanwm/nuTens/actions/workflows/CI-build-and-test.yml/badge.svg)](https://github.com/ewanwm/nuTens/actions/workflows/CI-build-and-test.yml) +[![Code - Doxygen](https://img.shields.io/badge/Code-Doxygen-2ea44f)](https://ewanwm.github.io/nuTens/index.html)