• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / ecosystem / 28786091494

06 Jul 2026 10:48AM UTC coverage: 67.08%. First build
28786091494

Pull #1223

github

web-flow
Merge 6863e5209 into 94b4e8664
Pull Request #1223: license normalization

60 of 111 new or added lines in 12 files covered. (54.05%)

1677 of 2500 relevant lines covered (67.08%)

0.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

34.78
/ecosystem/validation/test_github.py
1
# This code is part of Qiskit.
2
#
3
# (C) Copyright IBM 2023.
4
#
5
# This code is licensed under the Apache License, Version 2.0. You may
6
# obtain a copy of this license in the LICENSE.txt file in the root directory
7
# of this source tree or at https://www.apache.org/licenses/LICENSE-2.0.
8
#
9
# Any modifications or derivative works of this code must retain this
10
# copyright notice, and modified files need to carry a notice indicating
11
# that they have been altered from the originals.
12

13
"""Validations involving section member.github"""
1✔
14

15
# pylint: disable=invalid-name,missing-function-docstring
16

17
import pytest
1✔
18

19

20
@pytest.fixture(autouse=True)
1✔
21
def skip_github(member):
1✔
22
    """Skip if no github section"""
23
    if member.github is None:
×
24
        pytest.skip("No github section")
×
25
    yield member
×
26

27

28
def test_G05(member):
1✔
29
    """GitHub repository is archived?"""
30
    if hasattr(member.github, "archived") and member.github.archived:
×
31
        assert hasattr(
×
32
            member, "maturity"
33
        ), "GitHub repository archived, so member.maturity must exist and be `as-is`"
34
        assert member.maturity in [
×
35
            "as-is",
36
            "unmaintaned",
37
        ], "GitHub repository archived and member.maturity is not `as-is` or `unmaintaned`"
38

39

40
def test_G08(member):
1✔
41
    """Unmaintaned projects should archive their GitHub repository"""
42
    if member.maturity in ["deprecated", "unmaintaned"]:
×
43
        assert (
×
44
            member.github.archived
45
        ), "unsupported project should have an archived GitHub org"
46

47

48
def test_G09(member):
1✔
NEW
49
    if str(member.github.license) in ["None", "Other"]:
×
NEW
50
        assert (
×
51
            member.github.license.license_name is not None
52
        ), "member.github.license not detected"
NEW
53
        assert (
×
54
            member.github.license.license_name != "Other"
55
        ), "member.github.license not detected"
56

57

58
def test_G10(member):
1✔
NEW
59
    if member.github.license:
×
NEW
60
        if str(member.github.license) in ["None", "Other"]:
×
NEW
61
            pytest.skip("No member.github.license, already covered by [G09]")
×
NEW
62
        assert (
×
63
            member.github.license.is_osi_approved()
64
        ), "member.github.license is not OSI-approved"
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc