This repository was archived by the owner on May 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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/
Original file line number Diff line number Diff line change 11[tox]
22skipsdist = True
3- envlist = py38 -django{42}
3+ envlist = py{38, 311} -django{42}
44
55[testenv]
66passenv =
You can’t perform that action at this time.
0 commit comments