Ubuntu >= 22 and `setup-python` dropped Pythons < 3.7.
Use `s-weigand/setup-conda` instead of `setup-python`.
# Setup Python/pip
- uses: actions/checkout@v2
+ - uses: s-weigand/setup-conda@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+ if: ${{ runner.os == 'Linux' && matrix.python-version != '3.11' }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
+ if: ${{ runner.os != 'Linux' || matrix.python-version == '3.11' }}
- name: Cache pip
uses: actions/cache@v3
with: