From adc0886a8b919c87772c80e4ff6a020c6d088ddc Mon Sep 17 00:00:00 2001 From: pcaversaccio Date: Tue, 5 May 2026 17:38:28 +0200 Subject: [PATCH 1/9] ci: update GitHub Actions Signed-off-by: pcaversaccio --- action.yml | 44 ++++++++++++++++---------------------------- 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/action.yml b/action.yml index 4294cad..4980851 100644 --- a/action.yml +++ b/action.yml @@ -26,7 +26,18 @@ runs: using: 'composite' steps: - - uses: actions/cache@v4 + - name: Ensure cache directories exist + shell: bash + run: | + # NOTE: Workaround for an unrepressible warning + # in the cache action: + # https://github.com/actions/cache/issues/1241 + mkdir -p "$HOME/.solcx" + mkdir -p "$HOME/.vvm" + mkdir -p "$HOME/.ape" + mkdir -p "${{ github.workspace }}/.build" + + - uses: actions/cache@v5 name: Compilers cache with: path: | @@ -34,19 +45,19 @@ runs: $HOME/.vvm/vyper-* key: ${{ runner.os }}-compiler-cache - - uses: actions/cache@v4 + - uses: actions/cache@v5 name: Build cache with: path: ${{ github.workspace }}/.build key: ${{ runner.os }}-build-cache - - uses: actions/cache@v4 + - uses: actions/cache@v5 name: Ape data cache with: path: $HOME/.ape key: ${{ runner.os }}-apedata-cache - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version }} @@ -94,7 +105,7 @@ runs: shell: bash - name: Restore pip cache - uses: actions/cache@v4 + uses: actions/cache@v5 id: pip-cache with: path: | @@ -189,26 +200,3 @@ runs: elif [[ "${{ steps.check-pyproject-toml.outputs.files_exists }}" == "true" ]]; then pip install . fi - - - name: Ensure cache directories exist - shell: bash - run: | - # NOTE: Workaround for an unrepressible warning - # in the cache action: - # https://github.com/actions/cache/issues/1241 - - # NOTE: If HOME does not exist, mkdir fails. - if [ -d "$HOME" ]; then - if [ ! -d "$HOME/.solcx" ]; then - mkdir "$HOME/.solcx" - echo "Solcx directory created." - fi - if [ ! -d "$HOME/.vvm" ]; then - mkdir "$HOME/.vvm" - echo "VVM directory created." - fi - if [ ! -d "$HOME/.build" ]; then - mkdir "$HOME/.build" - echo ".build directory created." - fi - fi From 1e490cc5ff310cce86c4258ad67fa1a74ad5b043 Mon Sep 17 00:00:00 2001 From: pcaversaccio Date: Tue, 5 May 2026 17:46:34 +0200 Subject: [PATCH 2/9] remove comment Signed-off-by: pcaversaccio --- action.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/action.yml b/action.yml index 4980851..fef7f54 100644 --- a/action.yml +++ b/action.yml @@ -29,9 +29,6 @@ runs: - name: Ensure cache directories exist shell: bash run: | - # NOTE: Workaround for an unrepressible warning - # in the cache action: - # https://github.com/actions/cache/issues/1241 mkdir -p "$HOME/.solcx" mkdir -p "$HOME/.vvm" mkdir -p "$HOME/.ape" From 2006aecc5a33a96ad292256b00f708f67e3324d2 Mon Sep 17 00:00:00 2001 From: pcaversaccio Date: Tue, 5 May 2026 18:45:17 +0200 Subject: [PATCH 3/9] ci: revert changes Signed-off-by: pcaversaccio --- action.yml | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/action.yml b/action.yml index fef7f54..a631347 100644 --- a/action.yml +++ b/action.yml @@ -26,14 +26,6 @@ runs: using: 'composite' steps: - - name: Ensure cache directories exist - shell: bash - run: | - mkdir -p "$HOME/.solcx" - mkdir -p "$HOME/.vvm" - mkdir -p "$HOME/.ape" - mkdir -p "${{ github.workspace }}/.build" - - uses: actions/cache@v5 name: Compilers cache with: @@ -197,3 +189,26 @@ runs: elif [[ "${{ steps.check-pyproject-toml.outputs.files_exists }}" == "true" ]]; then pip install . fi + + - name: Ensure cache directories exist + shell: bash + run: | + # NOTE: Workaround for an unrepressible warning + # in the cache action: + # https://github.com/actions/cache/issues/1241 + + # NOTE: If HOME does not exist, mkdir fails. + if [ -d "$HOME" ]; then + if [ ! -d "$HOME/.solcx" ]; then + mkdir "$HOME/.solcx" + echo "Solcx directory created." + fi + if [ ! -d "$HOME/.vvm" ]; then + mkdir "$HOME/.vvm" + echo "VVM directory created." + fi + if [ ! -d "$HOME/.build" ]; then + mkdir "$HOME/.build" + echo ".build directory created." + fi + fi \ No newline at end of file From db59bf70d338a30eb0684bad4ee0db9f0f1dc35d Mon Sep 17 00:00:00 2001 From: pcaversaccio Date: Tue, 5 May 2026 18:45:47 +0200 Subject: [PATCH 4/9] ci: add linebreak Signed-off-by: pcaversaccio --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a631347..373996d 100644 --- a/action.yml +++ b/action.yml @@ -211,4 +211,4 @@ runs: mkdir "$HOME/.build" echo ".build directory created." fi - fi \ No newline at end of file + fi From ad3ce1944f056e3115682d60b28c04564c187a3d Mon Sep 17 00:00:00 2001 From: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> Date: Wed, 6 May 2026 17:39:42 -0400 Subject: [PATCH 5/9] fix: update tokens plugin pin test Note: 0.8.9 introduces a necessary upper pin on tokenlists --- .github/workflows/test_plugins.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_plugins.yaml b/.github/workflows/test_plugins.yaml index d2baf6b..50a12d6 100644 --- a/.github/workflows/test_plugins.yaml +++ b/.github/workflows/test_plugins.yaml @@ -23,7 +23,7 @@ jobs: 'default_with_version_config', 'default_without_version_in_config', 'tokens', - 'tokens==0.8.3' + 'tokens==0.8.9' ] config-file: [ 'ape-config.yaml', From e593477807c5bc56f2db6f74fc8c1a276a8652f5 Mon Sep 17 00:00:00 2001 From: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> Date: Wed, 6 May 2026 17:41:42 -0400 Subject: [PATCH 6/9] fix: tests needed update --- .github/workflows/test_plugins.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_plugins.yaml b/.github/workflows/test_plugins.yaml index 50a12d6..3ef942b 100644 --- a/.github/workflows/test_plugins.yaml +++ b/.github/workflows/test_plugins.yaml @@ -44,7 +44,7 @@ jobs: if [[ "${{ matrix.plugins }}" == "default_without_version_in_config" ]]; then # Remove the version so it defaults to `. -U`. - awk '!/version: 0.8.3/' "ape-config.yaml" > "ape-config.tmp" && mv "ape-config.tmp" "ape-config.yaml" + awk '!/version: 0.8.9/' "ape-config.yaml" > "ape-config.tmp" && mv "ape-config.tmp" "ape-config.yaml" fi - name: Convert 'ape-config.yaml' to 'pyproject.toml' @@ -68,15 +68,15 @@ jobs: if [[ "${{ matrix.plugins }}" == "default_without_version_in_config" || "${{ matrix.plugins }}" == "tokens" ]]; then - if [[ $result == "0.8.3" ]]; + if [[ $result == "0.8.9" ]]; then - echo "Expected $result to be greater than 0.8.3" + echo "Expected $result to be greater than 0.8.9" exit 1; fi else - if [[ $result != "0.8.3" ]]; + if [[ $result != "0.8.9" ]]; then - echo "Expected $result to be equal to 0.8.3" + echo "Expected $result to be equal to 0.8.9" exit 1; fi fi From ea3612c2ec808080c5377f3bc086dfe545e149b0 Mon Sep 17 00:00:00 2001 From: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> Date: Wed, 6 May 2026 17:49:27 -0400 Subject: [PATCH 7/9] fix: also forgot to update config --- ape-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ape-config.yaml b/ape-config.yaml index 8b9da41..78eac46 100644 --- a/ape-config.yaml +++ b/ape-config.yaml @@ -1,4 +1,4 @@ # This file exists only as a test for the action. plugins: - name: tokens - version: 0.8.3 + version: 0.8.9 From ab529711d47c2ed5cef62919ecad7266b6e50242 Mon Sep 17 00:00:00 2001 From: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> Date: Wed, 13 May 2026 12:58:49 -0400 Subject: [PATCH 8/9] fix: use a different plugin --- ape-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ape-config.yaml b/ape-config.yaml index 78eac46..3faa9f0 100644 --- a/ape-config.yaml +++ b/ape-config.yaml @@ -1,4 +1,4 @@ # This file exists only as a test for the action. plugins: - - name: tokens - version: 0.8.9 + - name: etherscan + version: 0.8.5 From 04fccdf2fd2fc4cb5430bcdc1697166508823987 Mon Sep 17 00:00:00 2001 From: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> Date: Wed, 13 May 2026 13:00:31 -0400 Subject: [PATCH 9/9] fix: change test case plugin --- .github/workflows/test_plugins.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test_plugins.yaml b/.github/workflows/test_plugins.yaml index 3ef942b..400e2c0 100644 --- a/.github/workflows/test_plugins.yaml +++ b/.github/workflows/test_plugins.yaml @@ -22,8 +22,8 @@ jobs: plugins: [ 'default_with_version_config', 'default_without_version_in_config', - 'tokens', - 'tokens==0.8.9' + 'etherscan', + 'etherscan==0.8.5' ] config-file: [ 'ape-config.yaml', @@ -44,7 +44,7 @@ jobs: if [[ "${{ matrix.plugins }}" == "default_without_version_in_config" ]]; then # Remove the version so it defaults to `. -U`. - awk '!/version: 0.8.9/' "ape-config.yaml" > "ape-config.tmp" && mv "ape-config.tmp" "ape-config.yaml" + awk '!/version: 0.8.5/' "ape-config.yaml" > "ape-config.tmp" && mv "ape-config.tmp" "ape-config.yaml" fi - name: Convert 'ape-config.yaml' to 'pyproject.toml' @@ -64,19 +64,19 @@ jobs: - name: Check results shell: bash run: | - result="$(ape plugins list | grep -o 'tokens.*' | grep -o '[0-9\.]*')" + result="$(ape plugins list | grep -o 'etherscan.*' | grep -o '[0-9\.]*')" - if [[ "${{ matrix.plugins }}" == "default_without_version_in_config" || "${{ matrix.plugins }}" == "tokens" ]]; + if [[ "${{ matrix.plugins }}" == "default_without_version_in_config" || "${{ matrix.plugins }}" == "etherscan" ]]; then - if [[ $result == "0.8.9" ]]; + if [[ $result == "0.8.5" ]]; then - echo "Expected $result to be greater than 0.8.9" + echo "Expected $result to be greater than 0.8.5" exit 1; fi else - if [[ $result != "0.8.9" ]]; + if [[ $result != "0.8.5" ]]; then - echo "Expected $result to be equal to 0.8.9" + echo "Expected $result to be equal to 0.8.5" exit 1; fi fi