Skip to content

Commit

Permalink
ci: Drop Python 3.6 and 3.7 (canonical#5607)
Browse files Browse the repository at this point in the history
Bump Ubuntu version for better pip dependency resolution.
  • Loading branch information
holmanb committed Aug 14, 2024
1 parent 56658ec commit e1845be
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
env: [ruff, mypy, pylint, black, isort]
name: Check ${{ matrix.env }}
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: "Checkout #1"
uses: actions/checkout@v3.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Verify Contributor License Agreement
name: CLA Check

on: [pull_request]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Pull Request Labeler"
name: PR Labeler
on:
- pull_request_target

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@ jobs:
unittests:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
toxenv: [py3]
slug: [""]
experimental: [false]
check-latest: [false]
continue-on-error: [false]
include:
- python-version: "3.6"
- python-version: "3.8"
toxenv: lowest-supported
slug: (lowest-supported)
continue-on-error: false
check-latest: false
experimental: false
name: unittest / ${{ matrix.toxenv }} / python ${{matrix.python-version}}
runs-on: ubuntu-20.04
name: Python ${{matrix.python-version}} ${{ matrix.slug }}
runs-on: ubuntu-22.04
continue-on-error: ${{ matrix.experimental }}
steps:
- name: "Checkout"
Expand Down
26 changes: 13 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -160,23 +160,23 @@ commands = {envpython} -X tracemalloc=40 -Wall -m pytest {posargs:tests/unittest
# To obtain these versions, check the versions of these libraries
# in the oldest support Ubuntu distro. Theses versions are from bionic.
deps =
jinja2==2.10
oauthlib==2.0.6
jinja2==2.10.1
oauthlib==3.1.0
pyserial==3.4
configobj==5.0.6
pyyaml==3.12
requests==2.18.4
jsonpatch==1.16
jsonschema==2.6.0
pyyaml==5.3.1
requests==2.22.0
jsonpatch==1.23
jsonschema==3.2.0
# test-requirements
pytest==3.3.2
pytest-cov==2.5.1
pytest-mock==1.7.1
setuptools==44.0.0
# Needed by pytest and default causes failures
attrs==17.4.0
responses==0.5.1
pytest==4.6.9
pytest-cov==2.8.1
pytest-mock==1.10.4
setuptools==45.2.0
responses==0.9.0
passlib
# required for this version of jinja2
markupsafe==2.0.1
commands = {envpython} -m pytest -m "not hypothesis_slow" --cov=cloud-init --cov-branch {posargs:tests/unittests}

[testenv:doc]
Expand Down

0 comments on commit e1845be

Please sign in to comment.