build: optimize GitHub Actions for building speed and stability (#10485)

This commit is contained in:
Jesse Yang
2020-07-30 22:28:56 -07:00
committed by GitHub
parent 7a329c25e9
commit 7ff1757448
7 changed files with 38 additions and 41 deletions

View File

@@ -34,22 +34,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2.1.1
with:
python-version: '3.6'
- name: Install dependencies
uses: apache-superset/cached-dependencies@adc6f73
uses: apache-superset/cached-dependencies@b90713b
with:
# Run commands in parallel does help initial installation without cache
parallel: true
run: |
npm-install && build-instrumented-assets
pip-install && setup-postgres && testdata
cypress-install
- name: Run Cypress
uses: apache-superset/cached-dependencies@adc6f73
uses: apache-superset/cached-dependencies@b90713b
env:
CYPRESS_BROWSER: ${{ matrix.browser }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}