Explorar el Código

be more specific with python versions - so caching can be safe (#1769)

jackie-pc hace 1 año
padre
commit
869c67d67e

+ 1 - 1
.github/workflows/integration_app_harness.yml

@@ -20,7 +20,7 @@ jobs:
     - uses: actions/checkout@v3
     - uses: actions/checkout@v3
     - uses: ./.github/actions/setup_build_env
     - uses: ./.github/actions/setup_build_env
       with:
       with:
-          python-version: "3.11"
+          python-version: "3.11.5"
           run-poetry-install: true
           run-poetry-install: true
           create-venv-at-path: .venv
           create-venv-at-path: .venv
     - run: poetry run pip install pyvirtualdisplay pillow
     - run: poetry run pip install pyvirtualdisplay pillow

+ 16 - 2
.github/workflows/integration_tests.yml

@@ -33,8 +33,22 @@ jobs:
       matrix:
       matrix:
         # Show OS combos first in GUI
         # Show OS combos first in GUI
         os: [ ubuntu-latest, windows-latest, macos-latest ]
         os: [ ubuntu-latest, windows-latest, macos-latest ]
-        python-version: [ "3.8", "3.9", "3.10", "3.11" ]
         node-version: [ "16.x" ]
         node-version: [ "16.x" ]
+        python-version: ["3.8.18", "3.9.18", "3.10.13", "3.11.5"]
+        exclude:
+          - os: windows-latest
+            python-version: "3.10.13"
+          - os: windows-latest
+            python-version: "3.9.18"
+          - os: windows-latest
+            python-version: "3.8.18"
+        include:
+          - os: windows-latest
+            python-version: "3.10.11"
+          - os: windows-latest
+            python-version: "3.9.13"
+          - os: windows-latest
+            python-version: "3.8.10"
 
 
     runs-on: ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
     steps:
     steps:
@@ -86,7 +100,7 @@ jobs:
       matrix:
       matrix:
         # Show OS combos first in GUI
         # Show OS combos first in GUI
         os: [ ubuntu-latest, windows-latest, macos-latest ]
         os: [ ubuntu-latest, windows-latest, macos-latest ]
-        python-version: [ "3.10", "3.11" ]
+        python-version: [ "3.10.10", "3.11.4" ]
         node-version: [ "16.x" ]
         node-version: [ "16.x" ]
 
 
     runs-on: ${{ matrix.os }}
     runs-on: ${{ matrix.os }}

+ 1 - 1
.github/workflows/pre-commit.yml

@@ -18,7 +18,7 @@ jobs:
         with:
         with:
           # running vs. one version of Python is OK
           # running vs. one version of Python is OK
           # i.e. ruff, black, etc.
           # i.e. ruff, black, etc.
-          python-version: 3.11
+          python-version: 3.11.5
           run-poetry-install: true
           run-poetry-install: true
           shell: bash
           shell: bash
           create-venv-at-path: .venv
           create-venv-at-path: .venv

+ 16 - 2
.github/workflows/unit_tests.yml

@@ -23,8 +23,22 @@ jobs:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
         os: [ubuntu-latest, windows-latest, macos-latest]
         os: [ubuntu-latest, windows-latest, macos-latest]
-        # TODO consider bringing back 3.7. Note Windows x 3.7 fails from some sqlalchemy related problem
-        python-version: ["3.8", "3.9", "3.10", "3.11"]
+        python-version: ["3.8.18", "3.9.18", "3.10.13", "3.11.5"]
+        # Windows is a bit behind on Python version availability in Github
+        exclude:
+          - os: windows-latest
+            python-version: "3.10.13"
+          - os: windows-latest
+            python-version: "3.9.18"
+          - os: windows-latest
+            python-version: "3.8.18"
+        include:
+          - os: windows-latest
+            python-version: "3.10.11"
+          - os: windows-latest
+            python-version: "3.9.13"
+          - os: windows-latest
+            python-version: "3.8.10"
     runs-on: ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
     steps:
     steps:
     - uses: actions/checkout@v3
     - uses: actions/checkout@v3