mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-11-22 01:10:39 +00:00
ci: use python311 base image on ci (#333)
This commit is contained in:
parent
b8a97de4f9
commit
763dd31053
@ -27,7 +27,7 @@ local PipelineLint = {
|
||||
steps: [
|
||||
{
|
||||
name: 'yapf',
|
||||
image: 'python:3.10',
|
||||
image: 'python:3.11',
|
||||
environment: {
|
||||
PY_COLORS: 1,
|
||||
},
|
||||
@ -41,7 +41,7 @@ local PipelineLint = {
|
||||
},
|
||||
{
|
||||
name: 'flake8',
|
||||
image: 'python:3.10',
|
||||
image: 'python:3.11',
|
||||
environment: {
|
||||
PY_COLORS: 1,
|
||||
},
|
||||
@ -69,7 +69,7 @@ local PipelineTest = {
|
||||
steps: [
|
||||
{
|
||||
name: 'fetch',
|
||||
image: 'python:3.10',
|
||||
image: 'python:3.11',
|
||||
commands: [
|
||||
'git fetch -tq',
|
||||
],
|
||||
@ -81,7 +81,7 @@ local PipelineTest = {
|
||||
PythonVersion(pyversion='3.11'),
|
||||
{
|
||||
name: 'codecov',
|
||||
image: 'python:3.10',
|
||||
image: 'python:3.11',
|
||||
environment: {
|
||||
PY_COLORS: 1,
|
||||
CODECOV_TOKEN: { from_secret: 'codecov_token' },
|
||||
@ -95,6 +95,7 @@ local PipelineTest = {
|
||||
'python38-pytest',
|
||||
'python39-pytest',
|
||||
'python310-pytest',
|
||||
'python311-pytest',
|
||||
],
|
||||
},
|
||||
],
|
||||
@ -116,7 +117,7 @@ local PipelineSecurity = {
|
||||
steps: [
|
||||
{
|
||||
name: 'bandit',
|
||||
image: 'python:3.10',
|
||||
image: 'python:3.11',
|
||||
environment: {
|
||||
PY_COLORS: 1,
|
||||
},
|
||||
@ -147,7 +148,7 @@ local PipelineBuildPackage = {
|
||||
steps: [
|
||||
{
|
||||
name: 'build',
|
||||
image: 'python:3.10',
|
||||
image: 'python:3.11',
|
||||
commands: [
|
||||
'git fetch -tq',
|
||||
'pip install poetry poetry-dynamic-versioning -qq',
|
||||
@ -193,7 +194,7 @@ local PipelineBuildPackage = {
|
||||
},
|
||||
{
|
||||
name: 'publish-pypi',
|
||||
image: 'python:3.10',
|
||||
image: 'python:3.11',
|
||||
commands: [
|
||||
'git fetch -tq',
|
||||
'pip install poetry poetry-dynamic-versioning -qq',
|
||||
@ -231,7 +232,7 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||
},
|
||||
}] else [{
|
||||
name: 'build',
|
||||
image: 'python:3.10',
|
||||
image: 'python:3.11',
|
||||
commands: [
|
||||
'git fetch -tq',
|
||||
'pip install poetry poetry-dynamic-versioning -qq',
|
||||
|
21
.drone.yml
21
.drone.yml
@ -8,7 +8,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: yapf
|
||||
image: python:3.10
|
||||
image: python:3.11
|
||||
commands:
|
||||
- git fetch -tq
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -19,7 +19,7 @@ steps:
|
||||
PY_COLORS: 1
|
||||
|
||||
- name: flake8
|
||||
image: python:3.10
|
||||
image: python:3.11
|
||||
commands:
|
||||
- git fetch -tq
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -45,7 +45,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: fetch
|
||||
image: python:3.10
|
||||
image: python:3.11
|
||||
commands:
|
||||
- git fetch -tq
|
||||
|
||||
@ -120,7 +120,7 @@ steps:
|
||||
- fetch
|
||||
|
||||
- name: codecov
|
||||
image: python:3.10
|
||||
image: python:3.11
|
||||
commands:
|
||||
- pip install codecov -qq
|
||||
- codecov --required -X gcov
|
||||
@ -133,6 +133,7 @@ steps:
|
||||
- python38-pytest
|
||||
- python39-pytest
|
||||
- python310-pytest
|
||||
- python311-pytest
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
@ -153,7 +154,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: bandit
|
||||
image: python:3.10
|
||||
image: python:3.11
|
||||
commands:
|
||||
- git fetch -tq
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -182,7 +183,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: python:3.10
|
||||
image: python:3.11
|
||||
commands:
|
||||
- git fetch -tq
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -221,7 +222,7 @@ steps:
|
||||
- refs/tags/**
|
||||
|
||||
- name: publish-pypi
|
||||
image: python:3.10
|
||||
image: python:3.11
|
||||
commands:
|
||||
- git fetch -tq
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -254,7 +255,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: python:3.10
|
||||
image: python:3.11
|
||||
commands:
|
||||
- git fetch -tq
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -332,7 +333,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: python:3.10
|
||||
image: python:3.11
|
||||
commands:
|
||||
- git fetch -tq
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -662,6 +663,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 6c6fc8aa56ccd2a01ab2ed56ffbdffba0327a31d3deb2543cfebee16475c93c0
|
||||
hmac: e1b66fb1dd7073fc2237b6eb1b1571ba0b6dcde8cb19d914fec125302b503e0f
|
||||
|
||||
...
|
||||
|
@ -14,6 +14,7 @@ classifiers = [
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Topic :: Utilities",
|
||||
]
|
||||
description = "Prometheus Service Discovery for Proxmox VE."
|
||||
|
Loading…
Reference in New Issue
Block a user