Consumer inflation rose in July as gas prices increased, according to Statistics Canada, with the consumer price index ticking up from June.