Stepper motor does not turn

ScoobyDoo:
Have you tried using #include.<Stepper.h> library,

That library is not a good idea for stepper motor drivers (like the DRV8825) that take step and direction signals. The OP's code is fine for testing.

...R