From d83a40f23ec524647c78516e616d70a0a14d7246 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Fri, 19 Jul 2024 08:14:55 +0200 Subject: [PATCH] add ci --- .github/workflows/build.yaml | 21 +++++++++++++++++++++ .github/workflows/test.yaml | 9 +++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 000000000..f5bc89881 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,21 @@ +name: Build + +on: + push: + branches: [ 'main' ] + workflow_dispatch: + inputs: + version: + description: | + The version of the project to build. Example: `1.0.3`. + + If not provided, a development build with a version name + based on the branch name will be built. Otherwise, a release + build with the provided version will be built. + required: false + +jobs: + build: + uses: openproblems-bio/actions/.github/workflows/build.yml@main + with: + version: ${{ github.event.inputs.version }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000..875378604 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,9 @@ +name: Test + +on: + push: + pull_request: + +jobs: + build: + uses: openproblems-bio/actions/.github/workflows/test.yml@main