Collapse consecutive integers
Python 2, 132 115 bytes

-17 bytes thanks to Leaky Nun


x,n=input()
o=[]
i=1
while x:
 t=x[0]
 while[t+i]==x[i:i+1]:i+=1
 o+=[[t,'-',t+i-1],x[:i]][i&lt;n];x=x[i:];i=1
print o


Try it online!