[workflows/ci.yml] Replace actions/setup-python for legacy Pythons
authordirkf <fieldhouse@gmx.net>
Thu, 22 Jun 2023 16:24:48 +0000 (17:24 +0100)
committerdirkf <fieldhouse@gmx.net>
Thu, 22 Jun 2023 22:12:22 +0000 (23:12 +0100)
Thanks MatteoH2O1999: https://github.com/MatteoH2O1999/setup-python

.github/workflows/ci.yml

index 51abdce1d2cfbf83e7884406bc389ecf00f9325f..9be4eaa8986bf3859a53cbcff9880220a4ac1d92 100644 (file)
@@ -38,10 +38,12 @@ jobs:
     steps:
     - uses: actions/checkout@v3
     - name: Set up supported Python ${{ matrix.python-version }}
-      uses: actions/setup-python@v4
-      if: ${{ matrix.python-impl == 'cpython' && ! contains(fromJSON('["3.3", "3.4"]'), matrix.python-version) }}
+      # wrap broken actions/setup-python@v4
+      uses: ytdl-org/setup-python@v1
       with:
         python-version: ${{ matrix.python-version }}
+        cache-build: true
+        allow-build: info
     - name: Set up Java 8
       if: ${{ matrix.python-impl == 'jython' }}
       uses: actions/setup-java@v2