What Mark said. Try to boost it first using some decent cables with clean clamps, not speaker wire or hay wire. The batteries can be good one day and bad the next.
It could just as well be the starter as well. Can't say without being there. There was a problem with some 2017's with some relays in the under hood fuse box. A total shot in the dark would be to switch a couple relays around with the starter one and give it a go.
The starter is under the front of the car just below the oil filter. There's a little skid plate held on with 2 or 3 10mm bolts. Then just 2 12mm or 14mm bolts hold the starter in place. It's easier if you jack up the front end or drive up on ramps.
__________________________________________
View my fuel log 2014 Mirage SE wussie cvt edition. 1.2 automatic: 37.7 mpg (US) ... 16.0 km/L ... 6.2 L/100 km ... 45.3 mpg (Imp)