Skip to content

Commit

Permalink
revert ci checks to only check pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
flxdot committed Apr 16, 2024
1 parent ca901f2 commit c2f91f5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test-lib-py_carlos_database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/test-lib-py_dev_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/test-lib-py_edge_device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/test-lib-py_edge_interface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/test-lib-py_edge_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/test-lib-py_monorepo_manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/test-services-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/test-services-device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2f91f5

Please sign in to comment.