@@ -12,43 +12,42 @@ jobs:
1212 lint :
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v3
16- - uses : actions/setup-python@v4
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-python@v5
1717 id : setup-py
1818 with :
19- python-version : ' 3.7 '
19+ python-version : ' 3.11 '
2020 - run : pip install -U tox
2121 - name : alias pythonX.Y for tox
2222 run : alias python${{ steps.setup-py.outputs.python-version }}=${{ steps.setup-py.outputs.python-path }}
2323 - run : TOXENV=lint tox
2424
2525
2626 test :
27+ runs-on : ubuntu-latest
2728 strategy :
2829 matrix :
29- python : ['3.6 ', '3.7 ', '3.8 ', '3.9 ', '3.10 ']
30- django : ['1.11', '2.0 ', '2 .1', '2.2', '3.0', '3.1', '3.2', '4.0', '4.1 ']
30+ python : ['3.10 ', '3.11 ', '3.12 ', '3.13 ', '3.14 ']
31+ django : ['4.2 ', '5 .1', '5.2 ']
3132 # TODO: elasticsearch: ['6', '7', '8', '9']
32- exclude :
33- - {python: '3.6', django: '4.0'}
34- - {python: '3.6', django: '4.1'}
35- - {python: '3.7', django: '4.0'}
36- - {python: '3.7', django: '4.1'}
37- - {python: '3.10', django: '1.11'}
38- - {python: '3.10', django: '2.0'}
39- runs-on : ubuntu-latest
4033 services :
41- elasticsearch :
34+ elasticsearch6 :
4235 image : elasticsearch:6.8.23
4336 ports :
44- - 9201 :9200
37+ - 9206 :9200
4538 steps :
46- - uses : actions/checkout@v3
47- - uses : actions/setup-python@v4
39+ - uses : actions/checkout@v4
40+ - uses : actions/setup-python@v5
4841 id : setup-py
4942 with :
5043 python-version : ${{ matrix.python }}
51- - run : pip install -U tox
52- - run : alias python${{ steps.setup-py.outputs.python-version }}=${{ steps.setup-py.outputs.python-path }}
53- - run : TOXENV=`echo 'py${{ matrix.python }}-django${{matrix.django}}' | sed 's/\.//g'` tox
5444
45+ - name : alias python
46+ run : alias python${{ steps.setup-py.outputs.python-version }}=${{ steps.setup-py.outputs.python-path }}
47+
48+ - name : install despondencies
49+ run : pip install -U poetry && poetry install --with=dev --extras=elastic6
50+
51+ - run : TOXENV=`echo 'py${{ matrix.python }}-django${{matrix.django}}' | sed 's/\.//g'` poetry run tox
52+ env :
53+ ELASTICSEARCH6_HOST : localhost:9206
0 commit comments