Skip to content

Commit

Permalink
test(json): Test 1.1 branches against OCDS 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 10, 2024
1 parent 71158e4 commit 7d6453c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions tests/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,18 @@ def read_metadata(*, allow_missing=False):

# Whether to use the 1.2-dev version of OCDS.
use_development_version = (
'1.2' in os.getenv('GITHUB_REF_NAME', '')
or '1.2' in os.getenv('GITHUB_BASE_REF', '')
# Extensions that are versioned with OCDS.
or repo_name == 'ocds_lots_extension'
# Extensions that depend on those extensions.
or (
'https://raw.githubusercontent.com/open-contracting-extensions/ocds_lots_extension/master/extension.json'
in read_metadata(allow_missing=True).get('testDependencies', [])
'1.1' not in os.getenv('GITHUB_REF_NAME', '')
and '1.1' not in os.getenv('GITHUB_BASE_REF', '')
and (
'1.2' in os.getenv('GITHUB_REF_NAME', '')
or '1.2' in os.getenv('GITHUB_BASE_REF', '')
# Extensions that are versioned with OCDS.
or repo_name == 'ocds_lots_extension'
# Extensions that depend on those extensions.
or (
'https://raw.githubusercontent.com/open-contracting-extensions/ocds_lots_extension/master/extension.json'
in read_metadata(allow_missing=True).get('testDependencies', [])
)
)
)

Expand Down

0 comments on commit 7d6453c

Please sign in to comment.