-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General: Re-introduced github actions; tests: Fixed file path calcula…
…tion
- Loading branch information
1 parent
d357d54
commit a4d69f1
Showing
3 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Run Unittests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' # Adjust to your project's Python version | ||
- name: Install dependencies | ||
run: | | ||
sudo apt install build-essential # GNU C++ compiler | ||
sudo apt install libboost-all-dev # C++ libraries provided by Boost | ||
sudo apt install swig # python -> C++ bridge | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Run tox tests | ||
run: | | ||
TOX_FILE=$(find . -name tox.ini) | ||
echo "-> Located tox file at $TOX_FILE" | ||
if [ -f "setup.py" ]; then | ||
echo "-> Found setup.py, using tox.ini with pkg environment" | ||
tox -c $TOX_FILE -e pkg $RECREATE_FLAG | ||
else | ||
echo "-> No setup.py found, using tox.ini with requirements environment" | ||
tox -c $TOX_FILE -e req $RECREATE_FLAG | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters