Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.9 unit testing #34196

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/migrations-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
strategy:
matrix:
os: [ ubuntu-20.04 ]
python-version: [ 3.8 ]
python-version: [ "3.9" ]
# 'pinned' is used to install the latest patch version of Django
# within the global constraint i.e. Django==4.2.8 in current case
# because we have global constraint of Django<4.2
# because we have global constraint of Django<4.2
django-version: ["pinned"]
mongo-version: ["4"]
mysql-version: ["8"]
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
./manage.py lms migrate
echo "Running the CMS migrations."
./manage.py cms migrate

# This job aggregates test results. It's the required check for branch protection.
# https://github.com/marketplace/actions/alls-green#why
# https://github.com/orgs/community/discussions/33579
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/unit-tests-gh-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ on:

jobs:
run-test:
if: (github.repository != 'openedx/edx-platform' && github.repository != 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == true))
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: [ '3.8' ]
python-version: [ '3.9' ]
django-version:
- "pinned"
# When updating the shards, remember to make the same changes in
Expand Down Expand Up @@ -84,7 +83,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ '3.8' ]
python-version: [ '3.9' ]
django-version:
- "pinned"
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
django-version:
- "pinned"
# When updating the shards, remember to make the same changes in
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8 ]
python-version: [ 3.9 ]
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions requirements/edx/base.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-r kernel.in # Core dependencies required for the platform to run.
-r bundled.in # Additional packages usually bundled with the platform
backports.zoneinfo;python_version<"3.9"
2 changes: 1 addition & 1 deletion requirements/edx/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ babel==2.14.0
# enmerkar-underscore
backoff==1.10.0
# via analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports.zoneinfo;python_version<"3.9"
# via
# celery
# django
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ backoff==1.10.0
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
# analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports.zoneinfo;python_version<"3.9"
# via
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ backoff==1.10.0
# via
# -r requirements/edx/base.txt
# analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports.zoneinfo;python_version<"3.9"
# via
# -r requirements/edx/base.txt
# backports-zoneinfo
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ backoff==1.10.0
# via
# -r requirements/edx/base.txt
# analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports.zoneinfo;python_version<"3.9"
# via
# -r requirements/edx/base.txt
# backports-zoneinfo
Expand Down
Loading