1- name : Lint
1+ name : Tests
22
3- on : [push, pull_request]
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - " support/**"
48
59jobs :
610 flake8 :
7- name : flake8
8- runs-on : ubuntu-lts
11+ runs-on : ubuntu-latest
912 steps :
1013 - name : Checkout
11- uses : actions/checkout@v2
14+ uses : actions/checkout@v6
1215 - name : Set up Python
13- uses : actions/setup-python@v2
16+ uses : actions/setup-python@v6
1417 with :
1518 python-version : 3.9
1619 - name : Install flake8
@@ -22,12 +25,12 @@ jobs:
2225 run : flake8
2326
2427 isort :
25- runs-on : ubuntu-lts
28+ runs-on : ubuntu-latest
2629 steps :
2730 - name : Checkout
28- uses : actions/checkout@v2
31+ uses : actions/checkout@v6
2932 - name : Set up Python
30- uses : actions/setup-python@v2
33+ uses : actions/setup-python@v6
3134 with :
3235 python-version : 3.9
3336 - run : python -m pip install isort
@@ -38,27 +41,25 @@ jobs:
3841 run : isort -c -rc -df aldryn_django
3942
4043 unit-tests :
41- runs-on : ubuntu-lts
44+ runs-on : ubuntu-latest
4245 strategy :
4346 fail-fast : false
4447 matrix :
45- python-version : ["3.8", "3.9", "3.10"]
48+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12" ]
4649 steps :
47- - uses : actions/checkout@v1
50+ - uses : actions/checkout@v6
51+ - name : Update depenedencies
52+ run : sudo apt-get update
4853 - name : Install dependencies
4954 run : sudo apt-get install -y libxml2-dev libxslt-dev python-dev-is-python3
5055 - name : Set up Python ${{ matrix.python-version }}
51- uses : actions/setup-python@v2
56+ uses : actions/setup-python@v6
5257 with :
5358 python-version : ${{ matrix.python-version }}
54- - name : Install dependencies
59+ - name : Run tests
5560 run : |
5661 python -m pip install --upgrade pip
57- pip install packaging
58- pip install --upgrade urllib3
59- pip install -r tests/requirements.txt
62+ python -m pip install -U packaging setuptools
63+ python -m pip install -r tests/requirements.txt
6064 python setup.py install
61- - name : Run coverage
62- run : coverage run setup.py test
63- - name : Upload Coverage to Codecov
64- uses : codecov/codecov-action@v1
65+ python tests/settings.py
0 commit comments