Skip to content
Merged
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
20 changes: 15 additions & 5 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
strategy:
matrix:
python-version: ['3.8']
django-version: ["3.2"]
django-version:
- "pinned"
#- "4.0"
shard_name: [
"lms-1",
"lms-2",
Expand All @@ -37,7 +39,9 @@ jobs:
steps:
- name: sync directory owner
run: sudo chown runner:runner -R .*
- uses: actions/checkout@v2

- name: checkout repo
uses: actions/checkout@v2

# This gives Mongo several chances to start. We started getting flakiness
# around 2022-02-15 wherein the start command would sometimes exit with:
Expand All @@ -58,7 +62,15 @@ jobs:
run: |
sudo pip install -r requirements/pip.txt
sudo pip install -r requirements/edx/testing.txt
sudo pip install "django~=${{ matrix.django-version }}.0"
if [[ "${{ matrix.django-version }}" == "pinned" ]]; then
sudo pip install -r requirements/edx/django.txt
else
sudo pip install "django~=${{ matrix.django-version }}.0"
fi

- name: list installed package versions
run: |
sudo pip freeze

- name: Setup and run tests
uses: ./.github/actions/unit-tests
Expand Down Expand Up @@ -90,5 +102,3 @@ jobs:
name: pytest-warning-report-html
path: |
reports/pytest_warnings/warning_report_all.html