-
Notifications
You must be signed in to change notification settings - Fork 57
61 lines (51 loc) · 1.3 KB
/
main.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
51
52
53
54
55
56
57
58
59
60
61
name: main
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PIPENV_NOSPIN: 1
jobs:
ci:
name: ci
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
timeout-minutes: 10
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pipenv'
- name: Install pipenv
run: pip install -U pip pipenv wheel
- name: Install python dependencies
env:
PYPI_DEPLOY_TOKEN: ${{ secrets.PYPI_DEPLOY_TOKEN }}
run: pipenv sync --dev
- name: Validate files and format
id: validation
uses: selfagency/capture-output@v1
with:
cmd: pipenv
args: run,validate_files
update_cal:
runs-on: ubuntu-latest
needs: ci
timeout-minutes: 60
strategy:
matrix:
repo: ['LedgerHQ/crypto-assets', 'LedgerHQ/python-erc7730']
steps:
- name: Trigger update on ${{ matrix.repo }}
timeout-minutes: 60
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.CI_BOT_TOKEN }}
repository: ${{ matrix.repo }}
event-type: submodules