m2lines / convection-parameterization-in-CAM

Deployment of the convection parameterization scheme (previously from within SAM) deployed into the CAM model
MIT License
3 stars 2 forks source link

Fix the python version problem in CI #58

Closed tztsai closed 8 months ago

tztsai commented 8 months ago

The CI workflow file uses conda to install the latest version of Python, which will produce an error when running pylint. To fix this, the python version in the CI environment is pinned to 3.10. However, conda produces another error when installing python 3.10, so I feel it's better to remove conda in the workflow and simply use pip to install the dependencies. Therefore I replaced the requirements.conda.yaml with requirements.txt to let pip install the packages.

In addition, I updated the Github actions setup-python and checkout to their latest corresponding versions.

dorchard commented 8 months ago

I think going with the current (requirements.txt) approach is fine for now.