Skip to content

Commit

Permalink
Merge pull request #1 from wtbarnes/ebtelplusplus-path-fixes
Browse files Browse the repository at this point in the history
Install `ebtel++` on CI
  • Loading branch information
jwreep authored May 22, 2024
2 parents e9ba234 + 930f573 commit 902ee2d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 2 additions & 2 deletions src/scripts/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'])

0 comments on commit 902ee2d

Please sign in to comment.