77 name : linters
88 runs-on : ubuntu-latest
99 steps :
10- - uses : actions/checkout@v2
10+ - uses : actions/checkout@v4
1111 - name : Setup python
12- uses : actions/setup-python@v1
12+ uses : actions/setup-python@v5
1313
1414 - name : Install Poetry
1515 uses : snok/install-poetry@v1
1818 virtualenvs-in-project : true
1919
2020 - name : Cache Poetry virtualenv
21- uses : actions/cache@v2
21+ uses : actions/cache@v4
2222 id : cached-poetry-dependencies
2323 with :
2424 path : .venv
@@ -40,16 +40,15 @@ jobs:
4040 shell : bash
4141 strategy :
4242 matrix :
43- python-version : [ '3.8', '3.9', '3.10', '3.11']
44- platform : [ubuntu-latest, macOS-latest , windows-latest ]
43+ python-version : [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
44+ platform : [ubuntu-latest, macos-13 , windows-2019 ]
4545 runs-on : ${{ matrix.platform }}
4646 steps :
47- - uses : actions/checkout@v2
47+ - uses : actions/checkout@v4
4848 - name : Setup python
49- uses : actions/setup-python@v1
49+ uses : actions/setup-python@v5
5050 with :
5151 python-version : ${{ matrix.python-version }}
52- architecture : x64
5352
5453 - name : Install Poetry
5554 uses : snok/install-poetry@v1
@@ -58,12 +57,12 @@ jobs:
5857 virtualenvs-in-project : true
5958
6059 - name : Cache Poetry virtualenv
61- uses : actions/cache@v2
60+ uses : actions/cache@v4
6261 id : cached-poetry-dependencies
6362 with :
6463 path : .venv
6564 key : venv-${{ matrix.python-version }}-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
66- if : ${{ matrix.platform != 'windows-latest ' }} # windows hangs if using a cached venv
65+ if : ${{ matrix.platform != 'windows-2019 ' }} # windows hangs if using a cached venv
6766
6867 - name : Install Dependencies
6968 run : poetry install --no-interaction --no-root
@@ -76,13 +75,13 @@ jobs:
7675
7776 - name : Force using UTF-8 encoding for windows tests
7877 run : poetry run python -m pytest -vs
79- if : ${{ matrix.platform == 'windows-latest ' }}
78+ if : ${{ matrix.platform == 'windows-2019 ' }}
8079 env :
8180 PYTHONIOENCODING : utf-8
8281
8382 - name : Run pytest
8483 run : make pytest
85- if : ${{ matrix.platform != 'windows-latest ' }}
84+ if : ${{ matrix.platform != 'windows-2019 ' }}
8685
8786
8887 release :
9190 needs : [linters, pytest]
9291 runs-on : ubuntu-latest
9392 steps :
94- - uses : actions/checkout@v2
93+ - uses : actions/checkout@v4
9594 - name : Setup python
96- uses : actions/setup-python@v1
95+ uses : actions/setup-python@v5
9796 with :
9897 python-version : 3.8
9998
0 commit comments