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 }} 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'])