2828
2929env :
3030 REPORTS_DIR : CI_reports
31+ PYTHON_VERISON_DEFAULT : " 3.10"
32+ POETRY_VERSION : " 1.1.11"
3133
3234jobs :
3335 coding-standards :
@@ -41,17 +43,17 @@ jobs:
4143 # see https://github.com/actions/setup-python
4244 uses : actions/setup-python@v2
4345 with :
44- python-version : 3.9
46+ python-version : ${{ env.PYTHON_VERISON_DEFAULT }}
4547 architecture : ' x64'
4648 - name : Install poetry
4749 # see https://github.com/marketplace/actions/setup-poetry
4850 uses : Gr1N/setup-poetry@v7
4951 with :
50- poetry-version : 1.1.8
52+ poetry-version : ${{ env.POETRY_VERSION }}
5153 - uses : actions/cache@v2
5254 with :
5355 path : ~/.cache/pypoetry/virtualenvs
54- key : ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
56+ key : ${{ runner.os }}-${{ env.PYTHON_VERISON_DEFAULT }}- poetry${{ env.POETRY_VERSION }} -${{ hashFiles('poetry.lock') }}
5557 - name : Install dependencies
5658 run : poetry install
5759 - name : Run tox
@@ -68,17 +70,17 @@ jobs:
6870 # see https://github.com/actions/setup-python
6971 uses : actions/setup-python@v2
7072 with :
71- python-version : 3.9
73+ python-version : ${{ env.PYTHON_VERISON_DEFAULT }}
7274 architecture : ' x64'
7375 - name : Install poetry
7476 # see https://github.com/marketplace/actions/setup-poetry
7577 uses : Gr1N/setup-poetry@v7
7678 with :
77- poetry-version : 1.1.8
79+ poetry-version : ${{ env.POETRY_VERSION }}
7880 - uses : actions/cache@v2
7981 with :
8082 path : ~/.cache/pypoetry/virtualenvs
81- key : ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
83+ key : ${{ runner.os }}-${{ env.PYTHON_VERISON_DEFAULT }}- poetry${{ env.POETRY_VERSION }} -${{ hashFiles('poetry.lock') }}
8284 - name : Install dependencies
8385 run : poetry install
8486 - name : Run tox
@@ -95,10 +97,11 @@ jobs:
9597 matrix :
9698 os : [ubuntu-latest, windows-latest, macos-latest]
9799 python-version :
98- - " 3.9" # highest supported
100+ - " 3.10" # highest supported
101+ - " 3.9"
99102 - " 3.8"
100103 - " 3.7"
101- - " 3.6" # lowest supported
104+ - " 3.6" # lowest supported
102105 steps :
103106 - name : Checkout
104107 # see https://github.com/actions/checkout
@@ -115,11 +118,11 @@ jobs:
115118 # see https://github.com/marketplace/actions/setup-poetry
116119 uses : Gr1N/setup-poetry@v7
117120 with :
118- poetry-version : 1.1.8
121+ poetry-version : ${{ env.POETRY_VERSION }}
119122 - uses : actions/cache@v2
120123 with :
121124 path : ~/.cache/pypoetry/virtualenvs
122- key : ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
125+ key : ${{ runner.os }}-${{ matrix.python-version }}-poetry${{ env.POETRY_VERSION }} -${{ hashFiles('poetry.lock') }}
123126 - name : Install dependencies
124127 run : poetry install
125128 - name : Ensure build successful
0 commit comments