Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/test_plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
plugins: [
'default_with_version_config',
'default_without_version_in_config',
'tokens',
'tokens==0.8.3'
'etherscan',
'etherscan==0.8.5'
]
config-file: [
'ape-config.yaml',
Expand All @@ -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.5/' "ape-config.yaml" > "ape-config.tmp" && mv "ape-config.tmp" "ape-config.yaml"
fi

- name: Convert 'ape-config.yaml' to 'pyproject.toml'
Expand All @@ -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.3" ]];
if [[ $result == "0.8.5" ]];
then
echo "Expected $result to be greater than 0.8.3"
echo "Expected $result to be greater than 0.8.5"
exit 1;
fi
else
if [[ $result != "0.8.3" ]];
if [[ $result != "0.8.5" ]];
then
echo "Expected $result to be equal to 0.8.3"
echo "Expected $result to be equal to 0.8.5"
exit 1;
fi
fi
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@ runs:
using: 'composite'

steps:
- uses: actions/cache@v4
- uses: actions/cache@v5
name: Compilers cache
with:
path: |
$HOME/.solcx
$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 }}

Expand Down Expand Up @@ -94,7 +94,7 @@ runs:
shell: bash

- name: Restore pip cache
uses: actions/cache@v4
uses: actions/cache@v5
id: pip-cache
with:
path: |
Expand Down
4 changes: 2 additions & 2 deletions ape-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file exists only as a test for the action.
plugins:
- name: tokens
version: 0.8.3
- name: etherscan
version: 0.8.5
Loading