Skip to content
Snippets Groups Projects
Commit bcd08fe2 authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

adds tecnalia job tags

parent a3862b07
No related branches found
No related tags found
No related merge requests found
Pipeline #151310 passed
include: include:
- project: 'to-be-continuous/tools/gitlab-ci' - component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/gitlab-ci/extract@master
ref: 'master' inputs:
file: '/templates/extract.yml' extract-script-job-tags: ["docker"]
- project: 'to-be-continuous/tools/gitlab-ci' - component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/gitlab-ci/validation@master
ref: 'master' inputs:
file: '/templates/validation.yml' check-links-job-tags: ["docker"]
- project: 'to-be-continuous/kicker' tbc-check-job-tags: ["docker"]
ref: 'master' tbc-check-image: registry.gitlab.com/gbenguria/tbc-check:main
file: '/templates/validation.yml' gitlab-ci-lint-job-tags: ["docker"]
- project: 'to-be-continuous/bash' - component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/kicker/validation@master
ref: '3.4' inputs:
file: '/templates/gitlab-ci-bash.yml' kicker-validation-job-tags: ["docker"]
- project: 'to-be-continuous/semantic-release' schema-base-url: "https://git.code.tecnalia.com/api/v4/projects/smartdatalab%2Fpublic%2Fci-cd-components%2Fkicker/repository/files"
ref: '3.8' - component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/bash/gitlab-ci-bash@master
file: '/templates/gitlab-ci-semrel.yml' inputs:
bash-shellcheck-job-tags: ["docker"]
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/semantic-release/gitlab-ci-semrel@master
inputs:
semantic-release-job-tags: ["docker"]
stages: stages:
- build - build
......
...@@ -82,6 +82,10 @@ This job allows building your Python project [distribution packages](https://pac ...@@ -82,6 +82,10 @@ This job allows building your Python project [distribution packages](https://pac
It is bound to the `build` stage, it is **disabled by default** and can be enabled by setting `$PYTHON_PACKAGE_ENABLED` to `true`. It is bound to the `build` stage, it is **disabled by default** and can be enabled by setting `$PYTHON_PACKAGE_ENABLED` to `true`.
| Input / Variable | Description | Default value |
| ------------------------ | ---------------------------------- | ----------------- |
| `py-package-job-tags` / `PY_PACKAGE_JOB_TAGS` | Tags to be used for selecting runners for the job | `[]` |
### Lint jobs ### Lint jobs
#### `py-lint` job #### `py-lint` job
...@@ -159,6 +163,7 @@ It is bound to the `build` stage, and uses the following variables: ...@@ -159,6 +163,7 @@ It is bound to the `build` stage, and uses the following variables:
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- | | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
| `pytest-enabled` / `PYTEST_ENABLED` | Set to `true` to enable the `pytest` job | _none_ (disabled) | | `pytest-enabled` / `PYTEST_ENABLED` | Set to `true` to enable the `pytest` job | _none_ (disabled) |
| `pytest-args` / `PYTEST_ARGS` | Additional [pytest](https://docs.pytest.org/en/stable/usage.html) or [pytest-cov](https://github.com/pytest-dev/pytest-cov#usage) CLI options | _none_ | | `pytest-args` / `PYTEST_ARGS` | Additional [pytest](https://docs.pytest.org/en/stable/usage.html) or [pytest-cov](https://github.com/pytest-dev/pytest-cov#usage) CLI options | _none_ |
| `py-pytest-job-tags` / `PY_PYTEST_JOB_TAGS` | Tags to be used for selecting runners for the job | `[]` |
:information_source: use a `.coveragerc` file at the root of your Python project to control the coverage settings. :information_source: use a `.coveragerc` file at the root of your Python project to control the coverage settings.
...@@ -295,6 +300,7 @@ This job **disabled by default** and runs [Ruff](https://docs.astral.sh/ruff/) o ...@@ -295,6 +300,7 @@ This job **disabled by default** and runs [Ruff](https://docs.astral.sh/ruff/) o
| `ruff-enabled` / `RUFF_ENABLED` | Set to `true` to enable ruff job | _none_ (disabled) | | `ruff-enabled` / `RUFF_ENABLED` | Set to `true` to enable ruff job | _none_ (disabled) |
| `ruff-args` / `RUFF_ARGS` | Additional [Ruff Linter CLI options](https://docs.astral.sh/ruff/configuration/#full-command-line-interface) | _none_ | | `ruff-args` / `RUFF_ARGS` | Additional [Ruff Linter CLI options](https://docs.astral.sh/ruff/configuration/#full-command-line-interface) | _none_ |
| `ruff-ext-exclude` / `RUFF_EXT_EXCLUDE` | Define [extend-exclude](https://docs.astral.sh/ruff/settings/#extend-exclude) files | _.venv,.cache_ | | `ruff-ext-exclude` / `RUFF_EXT_EXCLUDE` | Define [extend-exclude](https://docs.astral.sh/ruff/settings/#extend-exclude) files | _.venv,.cache_ |
| `py-ruff-job-tags` / `PY_RUFF_JOB_TAGS` | Tags to be used for selecting runners for the job | `[]` |
:warning: Ruff can replace isort, Black, Bandit, Pylint and much more. [More info](https://github.com/astral-sh/ruff/blob/main/docs/faq.md#which-tools-does-ruff-replace). :warning: Ruff can replace isort, Black, Bandit, Pylint and much more. [More info](https://github.com/astral-sh/ruff/blob/main/docs/faq.md#which-tools-does-ruff-replace).
...@@ -388,6 +394,7 @@ The release job is bound to the `publish` stage, appears only on production and ...@@ -388,6 +394,7 @@ The release job is bound to the `publish` stage, appears only on production and
| `repository-url` / `PYTHON_REPOSITORY_URL`| Target PyPI repository to publish packages | _[GitLab project's PyPI packages repository](https://docs.gitlab.com/ee/user/packages/pypi_repository/)_ | | `repository-url` / `PYTHON_REPOSITORY_URL`| Target PyPI repository to publish packages | _[GitLab project's PyPI packages repository](https://docs.gitlab.com/ee/user/packages/pypi_repository/)_ |
| `PYTHON_REPOSITORY_USERNAME`| Target PyPI repository username credential | `gitlab-ci-token` | | `PYTHON_REPOSITORY_USERNAME`| Target PyPI repository username credential | `gitlab-ci-token` |
| :lock: `PYTHON_REPOSITORY_PASSWORD`| Target PyPI repository password credential | `$CI_JOB_TOKEN` | | :lock: `PYTHON_REPOSITORY_PASSWORD`| Target PyPI repository password credential | `$CI_JOB_TOKEN` |
| `py-release-job-tags` / `PY_RELEASE_JOB_TAGS` | Tags to be used for selecting runners for the job | `[]` |
#### Setuptools tip #### Setuptools tip
......
...@@ -58,7 +58,16 @@ ...@@ -58,7 +58,16 @@
"id":"package", "id":"package",
"name":"package", "name":"package",
"description":"This job allows building your Python project [distribution packages](https://packaging.python.org/en/latest/glossary/#term-Distribution-Package).", "description":"This job allows building your Python project [distribution packages](https://packaging.python.org/en/latest/glossary/#term-Distribution-Package).",
"enable_with": "PYTHON_PACKAGE_ENABLED" "enable_with": "PYTHON_PACKAGE_ENABLED",
"variables": [
{
"name": "PY_PACKAGE_JOB_TAGS",
"description": "Tags to be used for selecting runners for the job",
"type": "array",
"default": [],
"advanced": true
}
]
}, },
{ {
"id": "pylint", "id": "pylint",
...@@ -101,6 +110,13 @@ ...@@ -101,6 +110,13 @@
"name": "PYTEST_ARGS", "name": "PYTEST_ARGS",
"description": "Additional [pytest](https://docs.pytest.org/en/stable/usage.html) or [pytest-cov](https://github.com/pytest-dev/pytest-cov#usage) CLI options", "description": "Additional [pytest](https://docs.pytest.org/en/stable/usage.html) or [pytest-cov](https://github.com/pytest-dev/pytest-cov#usage) CLI options",
"advanced": true "advanced": true
},
{
"name": "PY_PYTEST_JOB_TAGS",
"description": "Tags to be used for selecting runners for the job",
"type": "array",
"default": [],
"advanced": true
} }
] ]
}, },
...@@ -239,6 +255,13 @@ ...@@ -239,6 +255,13 @@
"description": "Target PyPI repository password credential", "description": "Target PyPI repository password credential",
"secret": true, "secret": true,
"default": "$CI_JOB_TOKEN" "default": "$CI_JOB_TOKEN"
},
{
"name": "PY_RELEASE_JOB_TAGS",
"description": "Tags to be used for selecting runners for the job",
"type": "array",
"default": [],
"advanced": true
} }
] ]
}, },
...@@ -269,6 +292,13 @@ ...@@ -269,6 +292,13 @@
"name": "RUFF_EXT_EXCLUDE", "name": "RUFF_EXT_EXCLUDE",
"description": "Define [extend-exclude](https://docs.astral.sh/ruff/settings/#extend-exclude) files", "description": "Define [extend-exclude](https://docs.astral.sh/ruff/settings/#extend-exclude) files",
"advanced": true "advanced": true
},
{
"name": "PY_RUFF_JOB_TAGS",
"description": "Tags to be used for selecting runners for the job",
"type": "array",
"default": [],
"advanced": true
} }
] ]
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment