In General Relativity, there are no global inertial frames. What there is, instead, are "local inertial frames". At any point in spacetime, you can create a coordinate system that is approximately inertial in a small enough region around that point.
The criterion for a system ##(x,y,z,t)## to be inertial is, roughly speaking, that a point mass that is not affected by any non-gravitational forces will travel along straight lines: ##\frac{dx}{dt} = \text{constant}##, ##\frac{dy}{dt} = \text{constant}##, ##\frac{dz}{dt} = \text{contant}##. You can't make this absolutely true in the real universe, because of spacetime curvature. But what you can do is make it approximately true, which means that for any desired level of accuracy in the measurement of velocities, you can choose an appropriately small region of spacetime and an appropriate coordinate system such that ##\frac{dx}{dt}, \frac{dy}{dt}, \frac{dz}{dt}## for test particles don't change within that region, to that level of accuracy. Or something like that.