Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 2d57bae

Browse files
committed
feat: add python 311 support
1 parent 64c666d commit 2d57bae

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os:
18-
- ubuntu-20.04
19-
python-version:
20-
- 3.8
17+
os: ['ubuntu-20.04']
18+
python-version: ['3.8', '3.11']
2119
targets: [ 'quality','main.test','docs' ]
2220

2321
steps:
@@ -27,13 +25,21 @@ jobs:
2725
with:
2826
python-version: ${{ matrix.python-version }}
2927

30-
- name: Start Container
31-
run: docker-compose -f .github/docker-compose-ci.yml up -d
32-
3328
- name: Install dependencies
3429
run: |
3530
pip install -r requirements/pip.txt
3631
pip install -r requirements/ci.txt
32+
33+
- name: Start Container
34+
run: docker-compose -f .github/docker-compose-ci.yml up -d
35+
36+
- name: Install Python 3.11
37+
if: matrix.python-version == '3.11'
38+
run: docker exec -t analytics_api_testing bash -c "apt-get install -y python3.11"
39+
40+
- name: Create symbolic link for Python 3.11
41+
if: matrix.python-version == '3.11'
42+
run: docker exec -t analytics_api_testing bash -c "ln -sf /usr/bin/python3.11 /usr/local/bin/python3"
3743

3844
- name: Run Tests
3945
run: docker exec -t analytics_api_testing bash -c "cd /edx/app/analytics_api/analytics_api/

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
skipsdist = True
3-
envlist = py38-django{42}
3+
envlist = py{38, 311}-django{42}
44

55
[testenv]
66
passenv =

0 commit comments

Comments
 (0)