From 3f6ef3da3342201933ff0e7fb9486e8a8d12c05b Mon Sep 17 00:00:00 2001 From: Samuel Brand Date: Tue, 17 Dec 2024 14:18:30 +0000 Subject: [PATCH] Add CI to run pipeline test mode --- .github/workflows/pipeline-run-check.yaml | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/pipeline-run-check.yaml diff --git a/.github/workflows/pipeline-run-check.yaml b/.github/workflows/pipeline-run-check.yaml new file mode 100644 index 00000000..6d6a4fed --- /dev/null +++ b/.github/workflows/pipeline-run-check.yaml @@ -0,0 +1,35 @@ +name: Pipeline Run Check + +on: + pull_request: + push: + branches: [main] + +jobs: + run-pipeline: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: "Set up R" + uses: r-lib/actions/setup-r@v2 + with: + r-version: "release" + use-public-rspm: true + - name: "install poetry" + run: pip install poetry + - name: "Install pyrenew-hew" + run: poetry install + - name: "Set up dependencies for hewr" + uses: r-lib/actions/setup-r-dependencies@v2 + with: + working-directory: hewr + - name: "Check hewr package" + uses: r-lib/actions/check-r-package@v2 + with: + working-directory: hewr + - name: "Run pipeline" + run: poetry run bash pipelines/tests/test_forecast_state.sh pipelines/tests