ci: use python311 base image on ci (#333)

This commit is contained in:
Robert Kaussow 2022-11-24 21:35:49 +01:00 committed by GitHub
parent b8a97de4f9
commit 763dd31053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 18 deletions

View File

@ -27,7 +27,7 @@ local PipelineLint = {
steps: [ steps: [
{ {
name: 'yapf', name: 'yapf',
image: 'python:3.10', image: 'python:3.11',
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
}, },
@ -41,7 +41,7 @@ local PipelineLint = {
}, },
{ {
name: 'flake8', name: 'flake8',
image: 'python:3.10', image: 'python:3.11',
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
}, },
@ -69,7 +69,7 @@ local PipelineTest = {
steps: [ steps: [
{ {
name: 'fetch', name: 'fetch',
image: 'python:3.10', image: 'python:3.11',
commands: [ commands: [
'git fetch -tq', 'git fetch -tq',
], ],
@ -81,7 +81,7 @@ local PipelineTest = {
PythonVersion(pyversion='3.11'), PythonVersion(pyversion='3.11'),
{ {
name: 'codecov', name: 'codecov',
image: 'python:3.10', image: 'python:3.11',
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
CODECOV_TOKEN: { from_secret: 'codecov_token' }, CODECOV_TOKEN: { from_secret: 'codecov_token' },
@ -95,6 +95,7 @@ local PipelineTest = {
'python38-pytest', 'python38-pytest',
'python39-pytest', 'python39-pytest',
'python310-pytest', 'python310-pytest',
'python311-pytest',
], ],
}, },
], ],
@ -116,7 +117,7 @@ local PipelineSecurity = {
steps: [ steps: [
{ {
name: 'bandit', name: 'bandit',
image: 'python:3.10', image: 'python:3.11',
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
}, },
@ -147,7 +148,7 @@ local PipelineBuildPackage = {
steps: [ steps: [
{ {
name: 'build', name: 'build',
image: 'python:3.10', image: 'python:3.11',
commands: [ commands: [
'git fetch -tq', 'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq', 'pip install poetry poetry-dynamic-versioning -qq',
@ -193,7 +194,7 @@ local PipelineBuildPackage = {
}, },
{ {
name: 'publish-pypi', name: 'publish-pypi',
image: 'python:3.10', image: 'python:3.11',
commands: [ commands: [
'git fetch -tq', 'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq', 'pip install poetry poetry-dynamic-versioning -qq',
@ -231,7 +232,7 @@ local PipelineBuildContainer(arch='amd64') = {
}, },
}] else [{ }] else [{
name: 'build', name: 'build',
image: 'python:3.10', image: 'python:3.11',
commands: [ commands: [
'git fetch -tq', 'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq', 'pip install poetry poetry-dynamic-versioning -qq',

View File

@ -8,7 +8,7 @@ platform:
steps: steps:
- name: yapf - name: yapf
image: python:3.10 image: python:3.11
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -19,7 +19,7 @@ steps:
PY_COLORS: 1 PY_COLORS: 1
- name: flake8 - name: flake8
image: python:3.10 image: python:3.11
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -45,7 +45,7 @@ platform:
steps: steps:
- name: fetch - name: fetch
image: python:3.10 image: python:3.11
commands: commands:
- git fetch -tq - git fetch -tq
@ -120,7 +120,7 @@ steps:
- fetch - fetch
- name: codecov - name: codecov
image: python:3.10 image: python:3.11
commands: commands:
- pip install codecov -qq - pip install codecov -qq
- codecov --required -X gcov - codecov --required -X gcov
@ -133,6 +133,7 @@ steps:
- python38-pytest - python38-pytest
- python39-pytest - python39-pytest
- python310-pytest - python310-pytest
- python311-pytest
trigger: trigger:
ref: ref:
@ -153,7 +154,7 @@ platform:
steps: steps:
- name: bandit - name: bandit
image: python:3.10 image: python:3.11
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -182,7 +183,7 @@ platform:
steps: steps:
- name: build - name: build
image: python:3.10 image: python:3.11
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -221,7 +222,7 @@ steps:
- refs/tags/** - refs/tags/**
- name: publish-pypi - name: publish-pypi
image: python:3.10 image: python:3.11
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -254,7 +255,7 @@ platform:
steps: steps:
- name: build - name: build
image: python:3.10 image: python:3.11
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -332,7 +333,7 @@ platform:
steps: steps:
- name: build - name: build
image: python:3.10 image: python:3.11
commands: commands:
- git fetch -tq - git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
@ -662,6 +663,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 6c6fc8aa56ccd2a01ab2ed56ffbdffba0327a31d3deb2543cfebee16475c93c0 hmac: e1b66fb1dd7073fc2237b6eb1b1571ba0b6dcde8cb19d914fec125302b503e0f
... ...

View File

@ -14,6 +14,7 @@ classifiers = [
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Utilities", "Topic :: Utilities",
] ]
description = "Prometheus Service Discovery for Proxmox VE." description = "Prometheus Service Discovery for Proxmox VE."