Skip to content

Commit

Permalink
try commenting out the run
Browse files Browse the repository at this point in the history
  • Loading branch information
MFA-X-AI committed Jan 24, 2024
1 parent 21e44ef commit 9ca7a49
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/run-workflow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
env:
TEST_XIRCUITS: |
examples/example.xircuits
examples/example2.xircuits
examples/example.xircuits
# path/to/your/workflow.xircuits
# Add more .xircuits files as needed, one per line
Expand Down Expand Up @@ -66,15 +66,15 @@ jobs:
WORKFLOW_LOG_FILE="${FULL_PATH%.*}_workflow_log.txt"
echo "Processing $FULL_PATH..." | tee -a $LOG_FILE
xircuits compile $FULL_PATH "${FULL_PATH%.*}.py" 2>&1 | tee -a $LOG_FILE
python "${FULL_PATH%.*}.py" 2>&1 | tee -a $WORKFLOW_LOG_FILE
LAST_LINE=$(tail -n 1 "$WORKFLOW_LOG_FILE")
if [[ "$LAST_LINE" != "Finished Executing" ]]; then
echo "Error: Workflow $FULL_PATH did not finish as expected" | tee -a $LOG_FILE
FAIL=1
else
echo "$FULL_PATH processed successfully" | tee -a $LOG_FILE
fi
cat "$WORKFLOW_LOG_FILE" | tee -a $LOG_FILE
# python "${FULL_PATH%.*}.py" 2>&1 | tee -a $WORKFLOW_LOG_FILE
# LAST_LINE=$(tail -n 1 "$WORKFLOW_LOG_FILE")
# if [[ "$LAST_LINE" != "Finished Executing" ]]; then
# echo "Error: Workflow $FULL_PATH did not finish as expected" | tee -a $LOG_FILE
# FAIL=1
# else
# echo "$FULL_PATH processed successfully" | tee -a $LOG_FILE
# fi
# cat "$WORKFLOW_LOG_FILE" | tee -a $LOG_FILE
else
echo "Specified file $FULL_PATH does not exist" | tee -a $LOG_FILE
FAIL=1
Expand Down

0 comments on commit 9ca7a49

Please sign in to comment.