From: Oleg Broytman Date: Tue, 6 Dec 2022 16:44:17 +0000 (+0300) Subject: CI(GHActions): Use `conda` to install older Pythons X-Git-Tag: 0.2.0.post1~15 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=0fbc94b768cfd4e5ef5ffd3fcb570c9e61dfa139;p=m_librarian.git 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 7a34482..b0dfacf 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -27,9 +27,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: