From 833fcf3cbab295ed5e375fdac62782f5c863ac51 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 21 Feb 2023 08:38:13 +0100 Subject: [PATCH 1/6] Update cpplint.yml --- .github/workflows/cpplint.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml index 58dfbfc..06eb07a 100644 --- a/.github/workflows/cpplint.yml +++ b/.github/workflows/cpplint.yml @@ -7,7 +7,9 @@ jobs: cpplint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.x - run: pip install cpplint - run: cpplint --recursive . From 6666731ebb0d3f972463b7fa50a4e591088f6e3e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 21 Feb 2023 08:44:21 +0100 Subject: [PATCH 2/6] Remove outdated Python setup --- .github/workflows/cpplint_modified_files.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cpplint_modified_files.yml b/.github/workflows/cpplint_modified_files.yml index 86b614b..54e4d20 100644 --- a/.github/workflows/cpplint_modified_files.yml +++ b/.github/workflows/cpplint_modified_files.yml @@ -11,11 +11,12 @@ jobs: cpplint_modified_files: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - shell: python # Show the version of shell: python and then upgrade shell: python to Python 3.8 - run: import sys ; print("Python {}.{}.{}".format(*sys.version_info)) # Legacy Python :-( - - run: sudo update-alternatives --install /usr/bin/python python ${pythonLocation}/bin/python3.8 10 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - shell: python # Print the version of Python + run: import sys ; print("Python {}.{}.{}".format(*sys.version_info)) - run: python -m pip install cpplint - run: git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY - run: git diff origin/master --name-only > git_diff.txt @@ -26,7 +27,7 @@ jobs: import subprocess import sys - print("Python {}.{}.{}".format(*sys.version_info)) # Python 3.8 + print("Python {}.{}.{}".format(*sys.version_info)) # Currently Python 3.11.2 with open("git_diff.txt") as in_file: modified_files = sorted(in_file.read().splitlines()) print("{} files were modified.".format(len(modified_files))) From b1665fce44db366278621d83209d4c98221f6f1b Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 21 Feb 2023 08:45:50 +0100 Subject: [PATCH 3/6] Update cpplint.yml --- .github/workflows/cpplint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml index 06eb07a..3aa774b 100644 --- a/.github/workflows/cpplint.yml +++ b/.github/workflows/cpplint.yml @@ -7,7 +7,7 @@ jobs: cpplint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 - uses: actions/setup-python@v4 with: python-version: 3.x From d116d7afdad8dacd1b75183d7673d4114c05607d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 21 Feb 2023 08:46:07 +0100 Subject: [PATCH 4/6] Update cpplint.yml --- .github/workflows/cpplint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml index 3aa774b..06eb07a 100644 --- a/.github/workflows/cpplint.yml +++ b/.github/workflows/cpplint.yml @@ -7,7 +7,7 @@ jobs: cpplint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: python-version: 3.x From aa06e64c51621919b85eba44e6cd1876ca6e6396 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 21 Feb 2023 08:46:41 +0100 Subject: [PATCH 5/6] Update cpplint_modified_files.yml --- .github/workflows/cpplint_modified_files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpplint_modified_files.yml b/.github/workflows/cpplint_modified_files.yml index 54e4d20..5b34791 100644 --- a/.github/workflows/cpplint_modified_files.yml +++ b/.github/workflows/cpplint_modified_files.yml @@ -11,7 +11,7 @@ jobs: cpplint_modified_files: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 # v2, NOT v3 - uses: actions/setup-python@v4 with: python-version: 3.x From 4f53817353a70f4c22ff502a8c3a1f4e43595074 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 21 Feb 2023 08:48:23 +0100 Subject: [PATCH 6/6] Update cpplint_modified_files.yml --- .github/workflows/cpplint_modified_files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cpplint_modified_files.yml b/.github/workflows/cpplint_modified_files.yml index 5b34791..1b297c9 100644 --- a/.github/workflows/cpplint_modified_files.yml +++ b/.github/workflows/cpplint_modified_files.yml @@ -11,7 +11,7 @@ jobs: cpplint_modified_files: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 # v2, NOT v3 + - uses: actions/checkout@v1 # v1, NOT v2 or v3 - uses: actions/setup-python@v4 with: python-version: 3.x