Skip to content

Commit

Permalink
💡 Ensure all jobs have headers and are appropriately grouped
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoZosa committed Aug 7, 2021
1 parent 89fcd4c commit 8b3c18e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on: # yamllint disable-line rule:truthy
jobs:

# Quality jobs ----------------------

code-quality:
name: Code Quality
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -59,8 +58,8 @@ jobs:
run: |
make pre-commit
# Security jobs ----------------------
# Security jobs ----------------------
dependency-security-vulnerability-analysis:
name: Dependency Security Vulnerability Analysis
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -92,8 +91,8 @@ jobs:
run: |
make scan-dependencies
# Code quality AND security job ----------------------
# Code quality AND security job ----------------------
semgrep:
runs-on: ubuntu-latest
name: Semgrep
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on: # yamllint disable-line rule:truthy
jobs:

# Shared tag & version number info ----------------------

get-tag-xor-dev-version:
name: Get tags and version numbers
runs-on: ubuntu-latest
Expand Down Expand Up @@ -67,8 +66,8 @@ jobs:
poetry version "${DEV_VERSION}" &&
echo "::set-output name=version::${DEV_VERSION}"
# Release notes publication ----------------------
# Release notes publication ----------------------
publish-release-notes:
name: Publish release notes
runs-on: ubuntu-latest
Expand Down
9 changes: 5 additions & 4 deletions {{cookiecutter.project_slug}}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on: # yamllint disable-line rule:truthy
jobs:

# Quality jobs ----------------------

code-quality:
name: Code Quality
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -59,8 +58,8 @@ jobs:
run: |
make pre-commit
# Security jobs ----------------------
# Security jobs ----------------------
dependency-security-vulnerability-analysis:
name: Dependency Security Vulnerability Analysis
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -92,8 +91,8 @@ jobs:
run: |
make scan-dependencies
# Code quality AND security job ----------------------
# Code quality AND security job ----------------------
semgrep:
runs-on: ubuntu-latest
name: Semgrep
Expand All @@ -112,7 +111,6 @@ jobs:
config: r/python

# Tests jobs ------------------------

test:
name: Python {{ "${{ matrix.python-version }}" }}
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -159,6 +157,7 @@ jobs:
file: ./.tox/coverage.xml
fail_ci_if_error: false

# Performance testing jobs ------------------------
test-performance:
name: Performance testing for Python {{ "${{ matrix.python-version }}" }}
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -200,6 +199,8 @@ jobs:
envname="py${TOX_COMPATIBLE_VERSION}-benchmark" && \
make "test-${envname}"
# Mutation testing jobs ------------------------
test-mutations:
name: Mutation testing
runs-on: "ubuntu-latest"
Expand Down
6 changes: 2 additions & 4 deletions {{cookiecutter.project_slug}}/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on: # yamllint disable-line rule:truthy
jobs:

# Shared tag & version number info ----------------------

get-tag-xor-dev-version:
name: Get tags and version numbers
runs-on: ubuntu-latest
Expand Down Expand Up @@ -73,6 +72,7 @@ jobs:
poetry version "${DEV_VERSION}" &&
echo "::set-output name=version::${DEV_VERSION}"
{%- if cookiecutter.project_type == 'package' %}
# Package build ----------------------
package-build:
Expand Down Expand Up @@ -179,7 +179,6 @@ jobs:
repository_url: https://test.pypi.org/legacy/

# Install Verification ----------------------

verify-user-install:
strategy:
matrix:
Expand Down Expand Up @@ -222,7 +221,7 @@ jobs:
{{cookiecutter.project_slug}} --help
{{cookiecutter.project_slug}} --version
shell: bash
{%- endif %}
{%- endif %}

# Docker image build and upload ----------------------
docker-image-build-and-upload:
Expand Down Expand Up @@ -267,7 +266,6 @@ jobs:
run: echo {{ "${{ steps.docker_build.outputs.digest }}" }}

# Release notes publication ----------------------

publish-release-notes:
name: Publish release notes
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8b3c18e

Please sign in to comment.