Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 9 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,52 +252,13 @@ jobs:
cd BUILD && . buildenv.sh
make standalones

- name: Build test dependencies
run: |
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
git clone --recursive https://github.com/GambitBSM/gambit-test
python3 -m pip install git+https://github.com/GambitBSM/gambit-yaml

# - name: Validation dependencies
# run: |
# . BUILD/buildenv.sh
# pip install cowsay
# # Fetch my tests
# git clone https://github.com/andrewfowlie/gambit_bats
# cd gambit_bats
# cowsay "$(git log -n 5)"
# # Install BATS
# git clone https://github.com/bats-core/bats-core.git
# echo 'export PATH=$PATH:$GITHUB_WORKSPACE/gambit_bats/bats-core/bin' >> ../BUILD/buildenv.sh
# # Install numdiff
# git clone https://github.com/tjhei/numdiff
# (cd numdiff && ./configure && make)
# echo 'export PATH=$PATH:$GITHUB_WORKSPACE/gambit_bats/numdiff' >> ../BUILD/buildenv.sh
# - name: Validate with BATS
# run: |
# #cat BUILD/buildenv.sh
# . BUILD/buildenv.sh
# cowsay "Testing GAMBIT on $(date)"
# cowsay "$(git log -n 5)"
# cd gambit_bats
# ls
# #echo "Testing BATS"
# #bats -h
# #echo "Testing numdiff"
# #numdiff || true
# echo "Running BATS"
# export GAMBIT="$GITHUB_WORKSPACE"
# #(python2 `which bats` *.bats | tee $GAMBIT/bats.txt) || true
# (bats *.bats | tee $GAMBIT/bats.txt) || true
# cd ..
# # Note email addresses for failed tests
# source gambit_bats/email.bash
# export BATS_FAIL_EMAIL=$(bats_fail_email ./bats.tap)
# export GIT_FAIL_EMAIL="$(git_fail_email ./gambit_bats) $(git_fail_email ./)"
# cowsay "For BATS yaml failures, contact $BATS_FAIL_EMAIL"
# cowsay "For GAMBIT and test changes, contact $GIT_FAIL_EMAIL"
# echo
# # Run again, now with TAP output (may fail, causing the job to report correctly)
# echo "Running BATS with TAP output (to bats.tap)"
# cd gambit_bats
# bats --tap *.bats > $GAMBIT/bats.tap
# - name: Upload BATS output
# uses: actions/upload-artifact@v2
# with:
# name: bats_tests
# path: bats.t*
- name: Run tests
run: |
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
./gambit-test/test/bats/bin/bats ./gambit-test/test/*.bats
23 changes: 23 additions & 0 deletions .github/workflows/ci_Mac_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- name: Set up build environment
run: |
echo "Set up the build environment"
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
mkdir -p BUILD
cd BUILD
- name: Configure with cmake
Expand Down Expand Up @@ -73,6 +74,7 @@ jobs:
- name: Set up build environment
run: |
echo "Set up the build environment"
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
mkdir -p BUILD
cd BUILD
- name: Configure with cmake
Expand Down Expand Up @@ -108,6 +110,7 @@ jobs:
- name: Set up build environment
run: |
echo "Set up the build environment"
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
mkdir -p BUILD
cd BUILD
- name: Configure with cmake
Expand Down Expand Up @@ -172,6 +175,7 @@ jobs:
- name: Set up build environment
run: |
echo "Set up the build environment"
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
mkdir -p BUILD
cd BUILD
- name: Configure with cmake
Expand All @@ -186,3 +190,22 @@ jobs:
echo "Test the building of the standalones"
cd BUILD
make standalones

- name: Build test dependencies
run: |
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
git clone --recursive https://github.com/GambitBSM/gambit-test
python3 -m pip install git+https://github.com/GambitBSM/gambit-yaml

- name: Run tests
run: |
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
export GAMBIT=.
./gambit-test/test/bats/bin/bats ./gambit-test/test/*.bats | tee results.tap
exit ${PIPESTATUS[0]}

- name: Summarize tests
if: always()
uses: pcolby/[email protected]
with:
path: results.tap
11 changes: 11 additions & 0 deletions .github/workflows/ci_Mac_x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,14 @@ jobs:
echo "Test the building of the standalones"
cd BUILD
make standalones

- name: Build test dependencies
run: |
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
git clone --recursive https://github.com/GambitBSM/gambit-test
python3 -m pip install git+https://github.com/GambitBSM/gambit-yaml

- name: Run tests
run: |
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
./gambit-test/test/bats/bin/bats ./gambit-test/test/*.bats
11 changes: 11 additions & 0 deletions .github/workflows/ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,14 @@ jobs:
export PATH=$PATH:/scratch2/shared/patch
cd BUILD
make standalones

- name: Build test dependencies
run: |
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
git clone --recursive https://github.com/GambitBSM/gambit-test
python3 -m pip install git+https://github.com/GambitBSM/gambit-yaml

- name: Run tests
run: |
source /Users/gambitci/Packages/GBTest_Venv/bin/activate
./gambit-test/test/bats/bin/bats ./gambit-test/test/*.bats
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Documentation CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test_docs:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Build test dependencies
run: |
git clone --recursive https://github.com/GambitBSM/gambit-test
python3 -m pip install git+https://github.com/GambitBSM/gambit-yaml

- name: Run tests
run: |
export GAMBIT=.
./gambit-test/test/bats/bin/bats --tap ./gambit-test/test/docs.bats | tee docs.tap
exit ${PIPESTATUS[0]}

- name: Summarize tests
if: always()
uses: pcolby/[email protected]
with:
path: docs.tap
Loading