-
Notifications
You must be signed in to change notification settings - Fork 91
47 lines (43 loc) · 1.19 KB
/
onchain.yml
File metadata and controls
47 lines (43 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: Onchain
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
# run CI every day even if no PRs/merges occur
- cron: '0 12 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-2025"]
type: ["etherscan", "sourcify", "blockscout"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python 3.10
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7
with:
python-version: "3.10"
activate-environment: true
- name: Install dependencies
run: |
uv pip install "solc-select>=v1.0.0b1"
solc-select use 0.5.7 --always-install
uv pip install .
- name: Run Tests
env:
TEST_TYPE: ${{ matrix.type }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
shell: bash
run: |
bash "scripts/ci_test_${TEST_TYPE}.sh"