Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot authored and fao89 committed Jul 11, 2022
1 parent 84818b9 commit 9a46463
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .ci/scripts/upper_bound.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import warnings
from pkg_resources import Requirement

packages = []
Expand All @@ -6,7 +7,10 @@
if not line.startswith("#"):
req = Requirement.parse(line)
spec = str(req.specs)
if len(req.specs) < 2 and "~=" not in spec and "==" not in spec and "<" not in spec:
if "~=" in spec:
warnings.warn(f"Please avoid using ~= on {req.name}")
continue
if len(req.specs) < 2 and "==" not in spec and "<" not in spec:
packages.append(req.name)
if packages:
raise RuntimeError(
Expand Down
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-146-gae643c8
2021.08.26-150-gc95d3f2
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ jobs:
- name: Check for gettext problems
run: sh .ci/scripts/check_gettext.sh

- name: Verify upper bound requirements
run: python .ci/scripts/upper_bound.py

test:
runs-on: ubuntu-latest
# run only after lint finishes
Expand Down
3 changes: 2 additions & 1 deletion template_config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This config represents the latest values used when running the plugin-template. Any settings that
# were not present before running plugin-template have been added with their default values.

# generated with [email protected]135-gf245075
# generated with [email protected]150-gc95d3f2

additional_repos:
- bindings: false
Expand Down Expand Up @@ -32,6 +32,7 @@ flake8: true
github_org: pulp
issue_tracker: github
keep_ci_update_since_branch: 0.7
lint_requirements: true
noissue_marker: '[noissue]'
parallel_test_workers: 8
plugin_app_label: ansible
Expand Down

0 comments on commit 9a46463

Please sign in to comment.