-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.01 KB
/
ci.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
name: Python + frontend CI
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
build_frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/python_prepare
- name: Build Frontend
env:
CI: false # needed otherwise dependencies warnings stop the job
run: yarn --cwd python_web3_wallet/frontend build
- name: Cache frontend build
uses: actions/cache@v4
with:
path: python_web3_wallet/frontend/build
key: frontend-build-${{ github.sha }}
build_python:
needs: [build_frontend]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/python_prepare
- name: Restore frontend build
uses: actions/cache@v4
with:
path: python_web3_wallet/frontend/build
key: frontend-build-${{ github.sha }}
fail-on-cache-miss: true
- name: Run poetry build
run: poetry build -f wheel