Suppose you have basepoints $x_0\in X$, $z_0\in Z$ and $p(x_0)=f(z_0)$$p(z_0)=f(x_0)$. The lift $\tilde{f}:Z\to X$$\tilde{f}:X\to Z$ such that $p\circ \tilde{f}=f$ exists and is continuous if and only if
$f_{\ast}(\pi_1(Z,z_0))\subseteq p_{\ast}(\pi_1(X,x_0))$ and$f_{\ast}(\pi_1(X,x_0))\subseteq p_{\ast}(\pi_1(Z,z_0))$ (this is equivalent to $\tilde{f}$ being a well-defined function).
For every evenly covered neighborhood $U\subset Y$, there is an open neighborhood $V\subset Z$$V\subset X$ such that if $\alpha,\beta:([0,1],0)\to (Z,z_0)$$\alpha,\beta:([0,1],0)\to (X,x_0)$ are paths with $\alpha(1),\beta(1)\in V$, then the lifts of $f\alpha$ and $f\beta$ starting at $x_0$$z_0$ end in the same slice of $U$ in $X$$Z$. (this is equivalent to the continuity of $\tilde{f}$)
For arbitrary spaces, this is about as good as it gets. Without more conditions on $Z$$X$ to control how paths vary with respect to their endpoints, there is no way to get around having to deal with how the given cover lifts paths. There are some conditions that do provide insight for some non-locally path connected spaces.
Here is a sufficient condition which generalizes local path-connectivity:
Suppose $(PZ)_{z_0}$$(PX)_{x_0}$ is the space of paths in $Z$$X$ starting at $z_0$$x_0$ with the compact-open topology and $ev:(PZ)_{z_0}\to Z$$ev:(PX)_{x_0}\to X$, $ev(\alpha)=\alpha(1)$ is endpoint-evaluation.
Theorem: If $f_{\ast}(\pi_1(Z,z_0))\subseteq p_{\ast}(\pi_1(X,x_0))$$f_{\ast}(\pi_1(X,x_0))\subseteq p_{\ast}(\pi_1(Z,z_0))$ and $ev:(PZ)_{z_0}\to Z$$ev:(PX)_{x_0}\to X$ is a quotient map, then $\tilde{f}$ exists and is continuous.
For a proof, see Lemma 2.5 and Corollary 2.6 of
J. Brazas, Semicoverings: a generalization of covering space theory, Homology Homotopy Appl. 14 (2012) 33-63.
The proof doesn't require using local triviality. To see an example of this generalization in action, consider something like the suspension of a non-discrete, zero-dimensional space (like the Cantor set). Such a space is not locally path connected, but the evaluation map is quotient so lifts are guaranteed to be continuous. The endpoint-evaluation map is not continuous for Zeeman's example that ACL mentions showing that there is not going to be a nice characterization for all spaces.