Skip to content

Commit

Permalink
Move check requirements to lint stage
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Nov 14, 2024
1 parent 4510e3a commit 839c4a2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ jobs:
GITHUB_CONTEXT: "${{ github.event.pull_request.commits_url }}"
run: |
.github/workflows/scripts/check_commit.sh
- name: "Verify requirements files"
run: |
python .ci/scripts/check_requirements.py
lint:
uses: "./.github/workflows/lint.yml"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ jobs:
run: |
check-manifest
- name: "Verify requirements files"
run: |
python .ci/scripts/check_requirements.py
- name: "Check for pulpcore imports outside of pulpcore.plugin"
run: |
sh .ci/scripts/check_pulpcore_imports.sh
Expand Down
5 changes: 0 additions & 5 deletions templates/github/.github/workflows/ci.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ jobs:
run: |
.github/workflows/scripts/check_commit.sh
{%- endif %}
{%- if lint_requirements %}
- name: "Verify requirements files"
run: |
python .ci/scripts/check_requirements.py
{%- endif %}
{%- endif %}
{%- if is_pulpdocs_member %}

Expand Down
6 changes: 6 additions & 0 deletions templates/github/.github/workflows/lint.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ jobs:
run: |
check-manifest
{%- endif %}
{%- if lint_requirements %}

- name: "Verify requirements files"
run: |
python .ci/scripts/check_requirements.py
{%- endif %}
{%- if check_stray_pulpcore_imports %}

- name: "Check for pulpcore imports outside of pulpcore.plugin"
Expand Down
2 changes: 1 addition & 1 deletion templates/github/lint_requirements.txt.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% include 'header.j2' %}

# python packages handy for developers, but not required by pulp
{% if black -%}
black==24.3.0
{% endif -%}
Expand All @@ -10,4 +9,5 @@ flake8
{% if black -%}
flake8-black
{% endif -%}
packaging
yamllint

0 comments on commit 839c4a2

Please sign in to comment.