From: Oleg Broytman Date: Tue, 6 Dec 2022 16:44:17 +0000 (+0300) Subject: CI(GHActions): Use `conda` to install older Pythons X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=commitdiff_plain;h=9bf761b86f72286dd9ec8edd531b30aec25fac7c CI(GHActions): Use `conda` to install older Pythons Ubuntu >= 22 and `setup-python` dropped Pythons < 3.7. Use `s-weigand/setup-conda` instead of `setup-python`. --- diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index baafe49..a4d5fd7 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -35,9 +35,14 @@ jobs: # 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: