-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from AdrickTench/main
ci.yml installs mettalog
- Loading branch information
Showing
5 changed files
with
97 additions
and
21 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
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,10 @@ | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
if len(sys.argv) != 3: | ||
print("Usage: python scripts/generate_allure_environment.py <commit SHA> <branch>") | ||
sys.exit(1) | ||
|
||
commit_SHA = sys.argv[1] | ||
branch = sys.argv[2] | ||
print("COMMIT_SHA = {}\nBRANCH = {}".format(commit_SHA, branch)) |
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,15 @@ | ||
import sys, json | ||
|
||
if __name__ == "__main__": | ||
if len(sys.argv) != 4: | ||
print("Usage: python scripts/generate_allure_executor.py <server-url> <repo> <run-id>") | ||
sys.exit(1) | ||
|
||
server_url = sys.argv[1] | ||
repo = sys.argv[2] | ||
run_id = sys.argv[3] | ||
data = { 'name':'GitHub Actions', 'type':'github' } | ||
data['buildUrl'] = '{}/{}/actions/runs/{}'.format(server_url, repo, run_id) | ||
data['buildName'] = 'GitHub Actions Run #{}'.format(run_id) | ||
|
||
print(json.dumps(data)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# This script generates the input file used by the Python script. | ||
# Replace the following lines with the actual commands to generate the input file. | ||
# parse arguments | ||
while [[ $# -gt 0 ]]; do | ||
case $1 in | ||
-t|--timestamp) | ||
timestamp="$2" | ||
shift # past argument | ||
shift # past value | ||
;; | ||
*) | ||
# Ignore unknown options | ||
;; | ||
esac | ||
done | ||
|
||
#echo "| ANTI-REGRESSION.BC-COMP.01 | PASS |(https://example.com/test-report) | (assertEqualToResult (add-atom &kb (: axiom (nums 2 3)))) | (()) | (()) |" > /tmp/SHARED.UNITS | ||
# generate the output directory with timestamp | ||
if [ -z $timestamp ]; then | ||
timestamp=$(date +"%Y-%m-%dT%H:%M:%S") | ||
fi | ||
output=reports/tests_output/baseline-compat-$timestamp/ | ||
|
||
# run the tests | ||
echo Running baseline_compat tests to $output | ||
cat ./reports/SHARED.UNITS.PREV.md > /tmp/SHARED.UNITS | ||
# You can add more lines or commands to generate additional input data | ||
#cat /dev/null> /tmp/SHARED.UNITS | ||
#mettalog --output=$output --test --clean tests/baseline_compat/anti-regression/comma_is_not_special.metta |