diff --git a/.github/workflows/migrations-check.yml b/.github/workflows/migrations-check.yml index 1f57cc335b..18505b8f1b 100644 --- a/.github/workflows/migrations-check.yml +++ b/.github/workflows/migrations-check.yml @@ -15,8 +15,17 @@ jobs: matrix: os: [ ubuntu-20.04 ] python-version: [ 3.8 ] + # 'pinned' is used to install the latest patch version of Django + # within the global constraint i.e. Django==3.2.21 in current case + # because we have global constraint of Django<4.2 + django-version: ["pinned", "4.2"] mongo-version: ["4"] mysql-version: ["5.7", "8"] + # excluding mysql5.7 with Django 4.2 since Django 4.2 has + # dropped support for MySQL<8 + exclude: + - django-version: "4.2" + mysql-version: "5.7" services: mongo: image: mongo:${{ matrix.mongo-version }} @@ -92,6 +101,14 @@ jobs: - name: Install Python dependencies run: | make dev-requirements + if [[ "${{ matrix.django-version }}" != "pinned" ]]; then + pip install "django~=${{ matrix.django-version }}.0" + pip check # fail if this test-reqs/Django combination is broken + fi + + - name: list installed package versions + run: | + sudo pip freeze - name: Run Tests env: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 6ec56ec0b2..cf20ff1f0e 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -17,7 +17,7 @@ jobs: - "3.8" django-version: - "pinned" - #- "4.0" + - "4.2" # When updating the shards, remember to make the same changes in # .github/workflows/unit-tests-gh-hosted.yml shard_name: