From e57df711d420c038be598b91bebfa9ea2631ee39 Mon Sep 17 00:00:00 2001 From: Will Barnes Date: Wed, 22 May 2024 12:26:44 -0600 Subject: [PATCH 1/2] pull ebtel path from env variable --- src/scripts/paths.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/paths.py b/src/scripts/paths.py index 0808ac3..6d39e51 100644 --- a/src/scripts/paths.py +++ b/src/scripts/paths.py @@ -2,6 +2,7 @@ Exposes common paths useful for manipulating datasets and generating figures. """ +import os from pathlib import Path # Absolute path to the top level of the repository @@ -29,5 +30,4 @@ output = tex / "output" # Absolute path to the ebtel++ code -# Replace this with the correct "path/to/ebtel" -ebtel_root = Path("/path/to/ebtelPlusPlus") +ebtel_root = Path(os.environ['EBTELPLUSPLUS_DIR']) From 930f57316a360ed95d309ca19c68ffc41009423e Mon Sep 17 00:00:00 2001 From: Will Barnes Date: Wed, 22 May 2024 12:27:08 -0600 Subject: [PATCH 2/2] install ebtel on ci --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11f56a2..53a467a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,12 +14,36 @@ jobs: with: fetch-depth: 0 + - name: Clone ebtel++ + uses: actions/checkout@v4 + with: + repository: jwreep/ebtelPlusPlus + ref: main + + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install scons + sudo apt-get update + sudo apt-get install libboost-all-dev + + - name: Install ebtel++ + run: | + cd ebtelPlusPlus + scons + cd .. + - name: Build the article PDF id: build with: showyourwork-spec: git+https://github.com/showyourwork/showyourwork uses: showyourwork/showyourwork-action@v1 env: + EBTELPLUSPLUS_DIR: ${{ github.workspace }}/ebtelPlusPlus SANDBOX_TOKEN: ${{ secrets.SANDBOX_TOKEN }} OVERLEAF_EMAIL: ${{ secrets.OVERLEAF_EMAIL }} OVERLEAF_PASSWORD: ${{ secrets.OVERLEAF_PASSWORD }}