Skip to content

Commit 05f1316

Browse files
authored
Add tests for Python 3.11 (#167)
Additionally based on our Version policy drop testes for Python 3.6 Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de> Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
1 parent 8423215 commit 05f1316

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/code_style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup python
1111
uses: actions/setup-python@v3
1212
with:
13-
python-version: 3.7
13+
python-version: 3.9
1414
architecture: x64
1515
- name: Install dependencies
1616
run: |

.github/workflows/unit_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [ 3.6, 3.7, 3.8, 3.9, "3.10" ]
10+
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11.0-rc.2" ]
1111
name: Python ${{ matrix.python-version }}
1212
steps:
1313
- uses: actions/checkout@v3

.gitlab-ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ stages:
1111
tags:
1212
- hc-bladerunner
1313

14-
python36:
15-
<<: *tests_template
16-
image: python:3.6-alpine
17-
script: tox -e py36
18-
1914
python37:
2015
<<: *tests_template
2116
image: python:3.7-alpine
@@ -33,12 +28,17 @@ python39:
3328

3429
python310:
3530
<<: *tests_template
36-
image: python:3.10-rc-alpine
31+
image: python:3.10-alpine
3732
script: tox -e py310
3833

34+
python311:
35+
<<: *tests_template
36+
image: python:3.1-rc-alpine
37+
script: tox -e py311
38+
3939
test-style:
4040
<<: *tests_template
41-
image: python:3.7-alpine
41+
image: python:3.9-alpine
4242
script:
4343
- tox -e flake8
4444
- tox -e black

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
"License :: OSI Approved :: MIT License",
2828
"Natural Language :: English",
2929
"Programming Language :: Python :: 3",
30-
"Programming Language :: Python :: 3.6",
3130
"Programming Language :: Python :: 3.7",
3231
"Programming Language :: Python :: 3.8",
3332
"Programming Language :: Python :: 3.9",
3433
"Programming Language :: Python :: 3.10",
34+
"Programming Language :: Python :: 3.11",
3535
],
3636
python_requires=">3.5",
3737
description="Official Hetzner Cloud python library",

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py36, py37, py38, py39, py310, flake8
2+
envlist = py37, py38, py39, py310, py311, flake8
33

44
[testenv:flake8]
55
basepython = python
@@ -20,8 +20,8 @@ commands =
2020

2121
[gh-actions]
2222
python =
23-
3.6: py36
2423
3.7: py37
2524
3.8: py38
2625
3.9: py39
2726
3.10: py310
27+
3.11: py311

0 commit comments

Comments
 (0)