@@ -2,9 +2,15 @@ name: CI
22
33on :
44 push :
5+ branches : ["master"]
56 pull_request :
67 branches : ["master"]
78
9+ env :
10+ POETRY_VERSION : 1.6.1
11+ TOX_VERSION : 4.11.3
12+ COVERALLS_VERSION : 3.3.1
13+
814jobs :
915 linting :
1016 name : " Perform linting checks"
@@ -19,14 +25,42 @@ jobs:
1925 python-version : " ${{ matrix.python-version }}"
2026 - name : " Install dependencies"
2127 run : |
22- python -m pip install --upgrade pip
23- pip install -U tox
28+ python3 -m pip install --upgrade pip
29+ python3 -m pip install --user pipx
30+ python3 -m pipx ensurepath
31+ pipx install poetry==$POETRY_VERSION
32+ pipx install tox==$TOX_VERSION
2433 - name : Lint with tox
2534 run : |
2635 tox
2736 env :
2837 TOXENV : lint
2938
39+ docs :
40+ name : " Build docs"
41+ needs : linting
42+ runs-on : ubuntu-latest
43+ strategy :
44+ matrix :
45+ python-version : ["3.11"]
46+ steps :
47+ - uses : " actions/checkout@v2"
48+ - uses : " actions/setup-python@v2"
49+ with :
50+ python-version : " ${{ matrix.python-version }}"
51+ - name : " Install dependencies"
52+ run : |
53+ python3 -m pip install --upgrade pip
54+ python3 -m pip install --user pipx
55+ python3 -m pipx ensurepath
56+ pipx install poetry==$POETRY_VERSION
57+ pipx install tox==$TOX_VERSION
58+ - name : Make docs with tox
59+ run : |
60+ tox
61+ env :
62+ TOXENV : docs
63+
3064 tests :
3165 name : tests
3266 needs : linting
4781 python-version : ${{ matrix.python-version }}
4882 - name : Install dependencies
4983 run : |
50- python -m pip install --upgrade pip
51- pip install -U tox coveralls
84+ python3 -m pip install --upgrade pip
85+ python3 -m pip install --user pipx
86+ python3 -m pipx ensurepath
87+ pipx install poetry==$POETRY_VERSION
88+ pipx install tox==$TOX_VERSION
89+ pipx install coveralls==$COVERALLS_VERSION
5290 - name : Prepare toxenv
5391 id : toxenv
5492 run : |
0 commit comments