Verified Commit eaba710d authored by clayton craft's avatar clayton craft 🕺🏽
Browse files

ci: update to python 3.10

Use alpine containers since they are much smaller, and the python3
debian containers had issues with pip. No idea why... but debian's
packaging is not its strong point.

Also remove the 100% test coverage requirement for passing. 100%
coverage isn't as useful as I originally thought.
parent cbc25c96
# This is used by the python containers, which run Debian
before_script:
- apt update
- apt install -y gobject-introspection tox dbus libdbus-1-dev libgirepository1.0-dev python3-cairo-dev pylint3 flake8 python3-dbus python3-dev
- python -V
- apk update
- apk add alpine-sdk cairo-dev dbus-dev gobject-introspection-dev py3-flake8 py3-pylint py3-tox python3-dev
cache:
paths:
......@@ -12,59 +10,35 @@ stages:
- linters
- tests
test-archlinux:
test-py3.10:
stage: tests
image: archlinux/archlinux:latest
before_script:
- pacman -Syyu --noconfirm
- pacman -S --noconfirm python-tox gobject-introspection base-devel cairo libffi python-gobject
- export pyversion=$(python -V|sed -n 's/.* \([0-9]\+\)[.]\([0-9]\+\).*/\1\2/p')
script:
- TOXENV=py${pyversion} tox
test-py3.5:
stage: tests
image: python:3.5
image: python:3.10-alpine
script:
- TOXENV=py35 tox
- TOXENV=py310 tox
test-py3.6:
test-py3.8:
stage: tests
image: python:3.6
image: python:3.8-alpine
script:
- TOXENV=py36 tox
- TOXENV=py38 tox
test-py3.7:
stage: tests
image: python:3.7
image: python:3.7-alpine
script:
- TOXENV=py37 tox
test-py3.8:
stage: tests
image: python:3.8
script:
- TOXENV=py38 tox
test-no-gi:
test-py3.6:
stage: tests
image: python:3.9
before_script:
- apt update
- apt install -y tox dbus libdbus-1-dev libgirepository1.0-dev python3-cairo-dev pylint3 flake8 python3-dbus python3-dev
- python -V
script:
- TOXENV=py39 tox
pylint:
stage: linters
image: python:3.9
image: python:3.6-alpine
script:
- pylint3 -d C0111,C0103 networkd_dispatcher.py
- TOXENV=py36 tox
flake8:
linting:
stage: linters
image: python:3.9
image: python:alpine
before_script:
- apk update
- apk add py3-dbus py3-flake8 py3-pylint
script:
- flake8 networkd_dispatcher.py
- pylint -d C0111,C0103 networkd_dispatcher.py
......@@ -97,7 +97,7 @@ This package can be [installed from AUR](https://aur.archlinux.org/packages/netw
Requirements:
- \>= python 3.4
- \>= python 3.6
- python-gobject
......
......@@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist = py35, py36, py37, py38, py39
envlist = py36, py37, py38, py39, py310
skipsdist=True
[testenv]
......@@ -16,4 +16,5 @@ deps =
pytest-cov
mock
commands =
python3 -m pytest --cov=networkd_dispatcher --cov-report term-missing --cov-fail-under 100 -q tests
python3 -V
python3 -m pytest --cov=networkd_dispatcher --cov-report term-missing -q tests
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment