Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox: Update tested python versions #223

Merged
merged 3 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ jobs:
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12.0-alpha - 3.12.0'
- '3.12'
include:
- os: "ubuntu-latest"
- os: "ubuntu-20.04"
Expand Down Expand Up @@ -60,7 +56,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.12'
- name: Install dependencies
run: python -m pip install tox
- run: python -m tox -e ${{ matrix.test-type }}
Expand Down
1 change: 0 additions & 1 deletion openqa_review/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def filename_to_url(name):


class Browser(object):

"""download relative or absolute url and return soup."""

def __init__(self, args, root_url, auth=None, headers={}, api_key=None):
Expand Down
22 changes: 11 additions & 11 deletions openqa_review/openqa_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,6 @@ def _parse_issue_timestamp(timestamp):


class Issue(object):

"""Issue with extra status info from issue tracker."""

def __init__(self, bugref, bugref_href, query_issue_status=False, progress_browser=None, bugzilla_browser=None):
Expand Down Expand Up @@ -886,7 +885,6 @@ def _format_all_urls_using_markdown(string):


class IssueEntry(object):

"""List of failed test scenarios with corresponding bug."""

def __init__(self, args, root_url, failures, test_browser=None, bug=None):
Expand Down Expand Up @@ -1162,13 +1160,17 @@ def __str__(self):
"status_badge": status_badge_str[self.status_badge],
# everything that is 'NEW_ISSUE' should be product issue but if tests have changed content, then
# probably openqa issues For now we can just not easily decide unless we use the 'bugrefs' mode
"new_openqa_issues": ""
if abbrev
else issue_listing("**New openQA-issues:**", self.issues["new"]["openqa"], self.args.show_empty),
"existing_openqa_issues": ""
if abbrev
else issue_listing(
"**Existing openQA-issues:**", self.issues["existing"]["openqa"], self.args.show_empty
"new_openqa_issues": (
""
if abbrev
else issue_listing("**New openQA-issues:**", self.issues["new"]["openqa"], self.args.show_empty)
),
"existing_openqa_issues": (
""
if abbrev
else issue_listing(
"**Existing openQA-issues:**", self.issues["existing"]["openqa"], self.args.show_empty
)
),
"new_product_issues": issue_listing(
"**New Product bugs:**", self.issues["new"]["product"], self.args.show_empty
Expand All @@ -1183,7 +1185,6 @@ def __str__(self):


class ProductReport(object):

"""Read overview page of one job group and generate a report for the product."""

def __init__(self, browser, job_group_url, root_url, args):
Expand Down Expand Up @@ -1527,7 +1528,6 @@ def _pgroup_prefix(group):


class Report(object):

"""openQA review report."""

def __init__(self, browser, args, root_url, job_groups):
Expand Down
2 changes: 0 additions & 2 deletions openqa_review/tumblesle_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,12 @@ def scenario(job):


class UnsupportedRsyncArgsError(Exception):

"""Unsupported rsync arguments where used."""

pass


class TumblesleRelease(object):

"""Check for releasable builds and release them as TumbleSLE if they are at least as good as the current one."""

def __init__(self, args):
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = flake8,black,doctests,py{36,37,38,39,310},cov
envlist = flake8,black,doctests,py{36,311,312,313},cov
deps = -rrequirements.txt
skip_missing_interpreters = true

Expand All @@ -18,6 +18,7 @@ python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
nicksinger marked this conversation as resolved.
Show resolved Hide resolved

[testenv:black]
deps =
Expand Down
Loading