IMO, you should set it as bash, and then run in `before_script`:

```yml
before_script:
 - apt-get update
- apt-get install pythonX
```