22on :
33 push :
44 branches :
5- - master
5+ - main
66 pull_request :
77
88jobs :
1313 - uses : actions/checkout@v3
1414 - uses : actions/setup-python@v4
1515 with :
16- python-version : " 3.10 "
16+ python-version : " 3.x "
1717 - run : python -m pip install --upgrade pip setuptools wheel twine readme-renderer
1818 - run : python setup.py sdist bdist_wheel
1919 - run : python -m twine check dist/*
@@ -35,12 +35,11 @@ jobs:
3535 - uses : actions/setup-python@v4
3636 with :
3737 python-version : " 3.10"
38- - run : python -m pip install -U setuptools wheel
3938 - run : sudo apt-get install -y gettext graphviz
40- - run : python setup.py develop
41- - run : python setup.py build_sphinx -W -b doctest -b html
39+ - run : python -m pip install -e .[docs]
40+ - run : python -m sphinx -W -b doctest -b html docs docs/_build
4241
43- pytest :
42+ PyTest :
4443 needs :
4544 - standardjs
4645 strategy :
@@ -55,25 +54,36 @@ jobs:
5554 - " 4.1"
5655 runs-on : ubuntu-latest
5756 steps :
58- - name : Set up Python ${{ matrix.python-version }}
59- uses : actions/setup-python@v4
57+ - uses : actions/checkout@v3
58+ - uses : actions/setup-python@v4
6059 with :
6160 python-version : ${{ matrix.python-version }}
61+ - run : python -m pip install Django~="${{ matrix.django-version }}.0"
62+ - run : python -m pip install -e .[test]
63+ - run : python -m pytest
64+ - uses : codecov/codecov-action@v2
65+
66+ Selenium :
67+ needs :
68+ - standardjs
69+ strategy :
70+ matrix :
71+ python-version :
72+ - " 3.x"
73+ runs-on : ubuntu-latest
74+ steps :
75+ - uses : actions/checkout@v3
6276 - name : Install Chrome
6377 run : sudo apt-get install -y google-chrome-stable
6478 - name : Install Selenium
6579 run : |
6680 mkdir bin
6781 curl -O https://chromedriver.storage.googleapis.com/`curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
6882 unzip chromedriver_linux64.zip -d bin
69- - uses : actions/checkout@v3
70- - name : Install dependencies
71- run : |
72- python -m pip install --upgrade pip setuptools wheel codecov
73- pip install -e .[test]
74- pip install django~="${{ matrix.django-version }}.0"
75- - name : Run tests
76- run : PATH=$PATH:$(pwd)/bin pytest
77- - run : codecov
78- env :
79- CODECOV_TOKEN : ${{secrets.CODECOV_TOKEN}}
83+ - uses : actions/setup-python@v4
84+ with :
85+ python-version : ${{ matrix.python-version }}
86+ - run : python -m pip install Django
87+ - run : python -m pip install -e .[test,selenium]
88+ - run : python -m pytest
89+ - uses : codecov/codecov-action@v2
0 commit comments