Skip to content

Commit 18c1ff2

Browse files
ci: update GitHub Actions (#48)
* ci: update GitHub Actions Signed-off-by: pcaversaccio <pascal.caversaccio@hotmail.ch> * remove comment Signed-off-by: pcaversaccio <pascal.caversaccio@hotmail.ch> * ci: revert changes Signed-off-by: pcaversaccio <pascal.caversaccio@hotmail.ch> * ci: add linebreak Signed-off-by: pcaversaccio <pascal.caversaccio@hotmail.ch> * fix: update tokens plugin pin test Note: 0.8.9 introduces a necessary upper pin on tokenlists * fix: tests needed update * fix: also forgot to update config * fix: use a different plugin * fix: change test case plugin --------- Signed-off-by: pcaversaccio <pascal.caversaccio@hotmail.ch> Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com>
1 parent 511caa6 commit 18c1ff2

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/test_plugins.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
plugins: [
2323
'default_with_version_config',
2424
'default_without_version_in_config',
25-
'tokens',
26-
'tokens==0.8.3'
25+
'etherscan',
26+
'etherscan==0.8.5'
2727
]
2828
config-file: [
2929
'ape-config.yaml',
@@ -44,7 +44,7 @@ jobs:
4444
4545
if [[ "${{ matrix.plugins }}" == "default_without_version_in_config" ]]; then
4646
# Remove the version so it defaults to `. -U`.
47-
awk '!/version: 0.8.3/' "ape-config.yaml" > "ape-config.tmp" && mv "ape-config.tmp" "ape-config.yaml"
47+
awk '!/version: 0.8.5/' "ape-config.yaml" > "ape-config.tmp" && mv "ape-config.tmp" "ape-config.yaml"
4848
fi
4949
5050
- name: Convert 'ape-config.yaml' to 'pyproject.toml'
@@ -64,19 +64,19 @@ jobs:
6464
- name: Check results
6565
shell: bash
6666
run: |
67-
result="$(ape plugins list | grep -o 'tokens.*' | grep -o '[0-9\.]*')"
67+
result="$(ape plugins list | grep -o 'etherscan.*' | grep -o '[0-9\.]*')"
6868
69-
if [[ "${{ matrix.plugins }}" == "default_without_version_in_config" || "${{ matrix.plugins }}" == "tokens" ]];
69+
if [[ "${{ matrix.plugins }}" == "default_without_version_in_config" || "${{ matrix.plugins }}" == "etherscan" ]];
7070
then
71-
if [[ $result == "0.8.3" ]];
71+
if [[ $result == "0.8.5" ]];
7272
then
73-
echo "Expected $result to be greater than 0.8.3"
73+
echo "Expected $result to be greater than 0.8.5"
7474
exit 1;
7575
fi
7676
else
77-
if [[ $result != "0.8.3" ]];
77+
if [[ $result != "0.8.5" ]];
7878
then
79-
echo "Expected $result to be equal to 0.8.3"
79+
echo "Expected $result to be equal to 0.8.5"
8080
exit 1;
8181
fi
8282
fi

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@ runs:
2626
using: 'composite'
2727

2828
steps:
29-
- uses: actions/cache@v4
29+
- uses: actions/cache@v5
3030
name: Compilers cache
3131
with:
3232
path: |
3333
$HOME/.solcx
3434
$HOME/.vvm/vyper-*
3535
key: ${{ runner.os }}-compiler-cache
3636

37-
- uses: actions/cache@v4
37+
- uses: actions/cache@v5
3838
name: Build cache
3939
with:
4040
path: ${{ github.workspace }}/.build
4141
key: ${{ runner.os }}-build-cache
4242

43-
- uses: actions/cache@v4
43+
- uses: actions/cache@v5
4444
name: Ape data cache
4545
with:
4646
path: $HOME/.ape
4747
key: ${{ runner.os }}-apedata-cache
4848

49-
- uses: actions/setup-python@v5
49+
- uses: actions/setup-python@v6
5050
with:
5151
python-version: ${{ inputs.python-version }}
5252

@@ -94,7 +94,7 @@ runs:
9494
shell: bash
9595

9696
- name: Restore pip cache
97-
uses: actions/cache@v4
97+
uses: actions/cache@v5
9898
id: pip-cache
9999
with:
100100
path: |

ape-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# This file exists only as a test for the action.
22
plugins:
3-
- name: tokens
4-
version: 0.8.3
3+
- name: etherscan
4+
version: 0.8.5

0 commit comments

Comments
 (0)