-
Notifications
You must be signed in to change notification settings - Fork 42
51 lines (43 loc) · 1.2 KB
/
check.yml
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
48
49
50
name: Check Files
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Check out github repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
pip-
- name: Install test dependencies
run: pip install -r tests/requirements.txt
- name: Check address checksum
run: python tests/check_checksum.py
- name: Check tokens (pull request)
run: python tests/check_token.py
if: github.event_name == 'pull_request'
- name: Check tokens with ethplorer (master)
if: github.event_name == 'push'
run: |
if [ -z "$ETHPLORER_API_KEY" ] ; then
echo "Missing ENV variable ETHPLORER_API_KEY"
exit 1
fi
python tests/check_token.py
env:
ETHPLORER_API_KEY: ${{ secrets.ETHPLORER_API_KEY }}