@@ -26,48 +26,6 @@ mkdir -p "$WORKDIR"
2626export TMPDIR=" $WORKDIR /tmp"
2727mkdir -p " $TMPDIR "
2828
29- # setup dbsync (disabled by default)
30- case " ${DBSYNC_REV:- " " } " in
31- " " )
32- ;;
33- " none" )
34- unset DBSYNC_REV
35- ;;
36- * )
37- # shellcheck disable=SC1090,SC1091
38- . .github/source_dbsync.sh
39- df -h .
40- ;;
41- esac
42-
43- # Setup plutus-apps (disabled by default).
44- # The "plutus-apps" repo is needed for the `create-script-context` tool, which is used by the
45- # Plutus tests that are testing script context.
46- # TODO: The `create-script-context` tool is broken for a very long time, hence disabled.
47- # See https://github.com/IntersectMBO/plutus-apps/issues/1107
48- case " ${PLUTUS_APPS_REV:= " none" } " in
49- " none" )
50- unset PLUTUS_APPS_REV
51- ;;
52- * )
53- # shellcheck disable=SC1090,SC1091
54- . .github/source_plutus_apps.sh
55- ;;
56- esac
57-
58- # setup cardano-cli (use the built-in version by default)
59- case " ${CARDANO_CLI_REV:- " " } " in
60- " " )
61- ;;
62- " none" )
63- unset CARDANO_CLI_REV
64- ;;
65- * )
66- # shellcheck disable=SC1090,SC1091
67- . .github/source_cardano_cli.sh
68- ;;
69- esac
70-
7129if [ " ${CI_TOPOLOGY:- " " } " = " legacy" ]; then
7230 export ENABLE_LEGACY=1
7331elif [ " ${CI_TOPOLOGY:- " " } " = " mixed" ]; then
@@ -127,9 +85,49 @@ if [ -n "${BOOTSTRAP_DIR:-""}" ]; then
12785 export MAKE_TARGET=" ${MAKE_TARGET:- " testnets" } "
12886fi
12987
130- # function to update cardano-node to specified branch and/or revision, or to the latest available
131- # shellcheck disable=SC1090,SC1091
132- . .github/nix_override_cardano_node.sh
88+ echo " ::endgroup::" # end group for "Script setup"
89+
90+ # setup dbsync (disabled by default)
91+ case " ${DBSYNC_REV:- " " } " in
92+ " " )
93+ ;;
94+ " none" )
95+ unset DBSYNC_REV
96+ ;;
97+ * )
98+ # shellcheck disable=SC1090,SC1091
99+ . .github/source_dbsync.sh
100+ df -h .
101+ ;;
102+ esac
103+
104+ # Setup plutus-apps (disabled by default).
105+ # The "plutus-apps" repo is needed for the `create-script-context` tool, which is used by the
106+ # Plutus tests that are testing script context.
107+ # TODO: The `create-script-context` tool is broken for a very long time, hence disabled.
108+ # See https://github.com/IntersectMBO/plutus-apps/issues/1107
109+ case " ${PLUTUS_APPS_REV:= " none" } " in
110+ " none" )
111+ unset PLUTUS_APPS_REV
112+ ;;
113+ * )
114+ # shellcheck disable=SC1090,SC1091
115+ . .github/source_plutus_apps.sh
116+ ;;
117+ esac
118+
119+ # setup cardano-cli (use the built-in version by default)
120+ case " ${CARDANO_CLI_REV:- " " } " in
121+ " " )
122+ ;;
123+ " none" )
124+ unset CARDANO_CLI_REV
125+ ;;
126+ * )
127+ # shellcheck disable=SC1090,SC1091
128+ . .github/source_cardano_cli.sh
129+ ;;
130+ esac
133131
134132_cleanup () {
135133 # stop all running cluster instances
@@ -176,6 +174,10 @@ trap 'set +e; _interrupted; exit 130' SIGINT
176174echo "::group::Nix env setup"
177175printf "start: %(%H:%M:%S)T\n" -1
178176
177+ # function to update cardano-node to specified branch and/or revision, or to the latest available
178+ # shellcheck disable=SC1090,SC1091
179+ . .github/nix_override_cardano_node.sh
180+
179181# run tests and generate report
180182set +e
181183# shellcheck disable=SC2046,SC2119
@@ -190,7 +192,7 @@ nix develop --accept-flake-config .#venv --command bash -c '
190192 . .github/setup_venv.sh clean
191193 echo " ::endgroup::" # end group for "Python venv setup"
192194
193- echo " ::group::Pytest run "
195+ echo " ::group::-> PYTEST RUN <- "
194196 export PATH=" ${PWD} /.bin" :" $WORKDIR /cardano-cli/cardano-cli-build/bin" :" $PATH "
195197 export CARDANO_NODE_SOCKET_PATH=" $CARDANO_NODE_SOCKET_PATH_CI "
196198 make " ${MAKE_TARGET:- " tests" } "
0 commit comments