This GitHub Action encapsulates common steps that are executed in GitHub Action workflows within GHGA repositories for microservices and libraries. Use as follows:
- id: ghga-common
uses: ghga-de/gh-action-common@v6
with:
python-version: '3.12'
If the with
block is omitted, the default Python version for the GHGA repositories will be used, which is currently Python 3.12.
The action outputs the following values:
Variable | Description |
---|---|
PACKAGE_NAME | the name of the microservice package |
MAIN_SRC_DIR | the main source directory of the microservice package |
CONFIG_YAML_ENV_VAR_NAME | the name of the environment variable pointing to the config YAML file |
CONFIG_YAML | the config YAML file |
Use Python 3.12 instead of Python 3.9 as the default version.
Allows specifying the Python version in the with
block.
The lock file must now be located in the .lock
directory.
This action will now only work with an exhaustive requirements-dev.txt
file. If you only have top-level dependencies in that file, pip will not install the transitive dependencies. This update coincides with the move to pip-tools (uv) in the microservice-repository-template.
Uses a requirement file for dev requirements instead of relying on the "all" extra.