Upgrading python version

I have the following issue:

  • Created a nbdev project a while ago (august 2020)
  • Later, upgraded my local python to 3.8
  • Used language features exclusive to python 3.8

The problem

When I push to github it tries to run the notebooks with python 3.6.X, of course failing.

My question

How do I upgrade the python version for my project?

What I’ve tried

Setting “min_python” to 3.8 in the settings.ini. With that change, github CI fails on installing with the error message:

Package ‘XXX’ requires a different Python: 3.6.12 not in ‘>=3.8’

I could not find any reference to that python 3.6.12 anywhere in my project settings. Where does it come from? Is it possible to upgrade the python version without having to make a new project?

This would be in the CLI of GitHub actions.If you check the main.yml, you should be able to specify your Python version to use. For reference this is the file I’m talking about in the template repo @oneironaut: https://github.com/fastai/nbdev_template/blob/master/.github/workflows/main.yml


Thanks for the lightning fast answer, this indeed fixed my issue!