diff --git a/.github/workflows/test-lib-py_carlos_database.yml b/.github/workflows/test-lib-py_carlos_database.yml index d5212a62..a4215b4d 100644 --- a/.github/workflows/test-lib-py_carlos_database.yml +++ b/.github/workflows/test-lib-py_carlos_database.yml @@ -157,12 +157,11 @@ jobs: files_yaml: | pyproject_toml: - lib/py_carlos_database/pyproject.toml - - lib/py_carlos_database/poetry.lock python_files: - lib/py_carlos_database/carlos/**/*.py - name: Test - Version bump # This step will fail if there are python files changed but the version in pyproject.toml is not updated - if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_all_changed_files_count != '2') && !cancelled() + if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_any_changed == 'false') && !cancelled() run: | echo "No changes in pyproject.toml but there are changes in python files. Please update the version in pyproject.toml if the code changes. Otherwise the automatic update of the carlos device may fail." exit 1 diff --git a/.github/workflows/test-lib-py_dev_dependencies.yml b/.github/workflows/test-lib-py_dev_dependencies.yml index daf55e10..e283d802 100644 --- a/.github/workflows/test-lib-py_dev_dependencies.yml +++ b/.github/workflows/test-lib-py_dev_dependencies.yml @@ -155,12 +155,11 @@ jobs: files_yaml: | pyproject_toml: - lib/py_dev_dependencies/pyproject.toml - - lib/py_dev_dependencies/poetry.lock python_files: - lib/py_dev_dependencies/devtools/**/*.py - name: Test - Version bump # This step will fail if there are python files changed but the version in pyproject.toml is not updated - if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_all_changed_files_count != '2') && !cancelled() + if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_any_changed == 'false') && !cancelled() run: | echo "No changes in pyproject.toml but there are changes in python files. Please update the version in pyproject.toml if the code changes. Otherwise the automatic update of the carlos device may fail." exit 1 diff --git a/.github/workflows/test-lib-py_edge_device.yml b/.github/workflows/test-lib-py_edge_device.yml index 81b6a6ab..3c5a09a0 100644 --- a/.github/workflows/test-lib-py_edge_device.yml +++ b/.github/workflows/test-lib-py_edge_device.yml @@ -157,12 +157,11 @@ jobs: files_yaml: | pyproject_toml: - lib/py_edge_device/pyproject.toml - - lib/py_edge_device/poetry.lock python_files: - lib/py_edge_device/carlos/**/*.py - name: Test - Version bump # This step will fail if there are python files changed but the version in pyproject.toml is not updated - if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_all_changed_files_count != '2') && !cancelled() + if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_any_changed == 'false') && !cancelled() run: | echo "No changes in pyproject.toml but there are changes in python files. Please update the version in pyproject.toml if the code changes. Otherwise the automatic update of the carlos device may fail." exit 1 diff --git a/.github/workflows/test-lib-py_edge_interface.yml b/.github/workflows/test-lib-py_edge_interface.yml index 08039009..08d9c603 100644 --- a/.github/workflows/test-lib-py_edge_interface.yml +++ b/.github/workflows/test-lib-py_edge_interface.yml @@ -156,12 +156,11 @@ jobs: files_yaml: | pyproject_toml: - lib/py_edge_interface/pyproject.toml - - lib/py_edge_interface/poetry.lock python_files: - lib/py_edge_interface/carlos/**/*.py - name: Test - Version bump # This step will fail if there are python files changed but the version in pyproject.toml is not updated - if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_all_changed_files_count != '2') && !cancelled() + if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_any_changed == 'false') && !cancelled() run: | echo "No changes in pyproject.toml but there are changes in python files. Please update the version in pyproject.toml if the code changes. Otherwise the automatic update of the carlos device may fail." exit 1 diff --git a/.github/workflows/test-lib-py_edge_server.yml b/.github/workflows/test-lib-py_edge_server.yml index 1ff1fa02..7ecc2543 100644 --- a/.github/workflows/test-lib-py_edge_server.yml +++ b/.github/workflows/test-lib-py_edge_server.yml @@ -159,12 +159,11 @@ jobs: files_yaml: | pyproject_toml: - lib/py_edge_server/pyproject.toml - - lib/py_edge_server/poetry.lock python_files: - lib/py_edge_server/carlos/**/*.py - name: Test - Version bump # This step will fail if there are python files changed but the version in pyproject.toml is not updated - if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_all_changed_files_count != '2') && !cancelled() + if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_any_changed == 'false') && !cancelled() run: | echo "No changes in pyproject.toml but there are changes in python files. Please update the version in pyproject.toml if the code changes. Otherwise the automatic update of the carlos device may fail." exit 1 diff --git a/.github/workflows/test-lib-py_monorepo_manager.yml b/.github/workflows/test-lib-py_monorepo_manager.yml index e4a9daa7..188ae66d 100644 --- a/.github/workflows/test-lib-py_monorepo_manager.yml +++ b/.github/workflows/test-lib-py_monorepo_manager.yml @@ -156,12 +156,11 @@ jobs: files_yaml: | pyproject_toml: - lib/py_monorepo_manager/pyproject.toml - - lib/py_monorepo_manager/poetry.lock python_files: - lib/py_monorepo_manager/monorepo_manager/**/*.py - name: Test - Version bump # This step will fail if there are python files changed but the version in pyproject.toml is not updated - if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_all_changed_files_count != '2') && !cancelled() + if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_any_changed == 'false') && !cancelled() run: | echo "No changes in pyproject.toml but there are changes in python files. Please update the version in pyproject.toml if the code changes. Otherwise the automatic update of the carlos device may fail." exit 1 diff --git a/.github/workflows/test-services-api.yml b/.github/workflows/test-services-api.yml index 82c7e9a8..5fd9ab1f 100644 --- a/.github/workflows/test-services-api.yml +++ b/.github/workflows/test-services-api.yml @@ -181,12 +181,11 @@ jobs: files_yaml: | pyproject_toml: - services/api/pyproject.toml - - services/api/poetry.lock python_files: - services/api/carlos/**/*.py - name: Test - Version bump # This step will fail if there are python files changed but the version in pyproject.toml is not updated - if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_all_changed_files_count != '2') && !cancelled() + if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_any_changed == 'false') && !cancelled() run: | echo "No changes in pyproject.toml but there are changes in python files. Please update the version in pyproject.toml if the code changes. Otherwise the automatic update of the carlos device may fail." exit 1 diff --git a/.github/workflows/test-services-device.yml b/.github/workflows/test-services-device.yml index 13a0d17f..23e170d9 100644 --- a/.github/workflows/test-services-device.yml +++ b/.github/workflows/test-services-device.yml @@ -157,12 +157,11 @@ jobs: files_yaml: | pyproject_toml: - services/device/pyproject.toml - - services/device/poetry.lock python_files: - services/device/device/**/*.py - name: Test - Version bump # This step will fail if there are python files changed but the version in pyproject.toml is not updated - if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_all_changed_files_count != '2') && !cancelled() + if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_any_changed == 'false') && !cancelled() run: | echo "No changes in pyproject.toml but there are changes in python files. Please update the version in pyproject.toml if the code changes. Otherwise the automatic update of the carlos device may fail." exit 1 diff --git a/lib/py_monorepo_manager/monorepo_manager/language/python/templates/github-action-python.yml.jinja2 b/lib/py_monorepo_manager/monorepo_manager/language/python/templates/github-action-python.yml.jinja2 index 9bfb6967..b4de160f 100644 --- a/lib/py_monorepo_manager/monorepo_manager/language/python/templates/github-action-python.yml.jinja2 +++ b/lib/py_monorepo_manager/monorepo_manager/language/python/templates/github-action-python.yml.jinja2 @@ -132,12 +132,11 @@ jobs: files_yaml: | pyproject_toml: - {{ project.path_from_root }}/pyproject.toml - - {{ project.path_from_root }}/poetry.lock python_files: - {{ project.path_from_root }}/{{ project.root_package_name }}/**/*.py - name: Test - Version bump # This step will fail if there are python files changed but the version in pyproject.toml is not updated - if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_all_changed_files_count != '2') && !cancelled() + if: (steps.detect-changed-files.outputs.python_files_any_changed == 'true') && (steps.detect-changed-files.outputs.pyproject_toml_any_changed == 'false') && !cancelled() run: | echo "No changes in pyproject.toml but there are changes in python files. Please update the version in pyproject.toml if the code changes. Otherwise the automatic update of the carlos device may fail." exit 1