Etherscan #2254
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Etherscan | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
pull_request: | |
branches: [ master, dev ] | |
schedule: | |
# run CI every day even if no PRs/merges occur | |
- cron: '0 12 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-2022"] | |
type: ["etherscan"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up shell | |
if: runner.os == 'Windows' | |
run: | | |
echo 'C:\msys64\mingw64\bin' >> "$GITHUB_PATH" | |
echo 'C:\msys64\usr\bin' >> "$GITHUB_PATH" | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
pip install "solc-select>=v1.0.0b1" | |
solc-select use 0.5.7 --always-install | |
pip install . | |
- name: Run Tests | |
env: | |
TEST_TYPE: ${{ matrix.type }} | |
GITHUB_ETHERSCAN: ${{ secrets.GITHUB_ETHERSCAN }} | |
shell: bash | |
run: | | |
bash "scripts/ci_test_${TEST_TYPE}.sh" |