message: ci: skip cypress if no code changes
diff: @@ -56,47 +56,63 @@ jobs:
  ref: "refs/pull/${{ github.event.number }}/merge"
  persist-credentials: false
  submodules: recursive
  + - name: Check if python or frontend changes are present
  + id: check
  + env:
  + GITHUB_REPO: ${{ github.repository }}
  + PR_NUMBER: ${{ github.event.pull_request.number }}
  + continue-on-error: true
  + run: ./scripts/ci_check_no_file_changes.sh python frontend
  - name: Setup Python
  + if: steps.check.outcome == 'failure'
  uses: actions/setup-python@v2
  with:
  python-version: "3.7"
  - name: OS dependencies
  + if: steps.check.outcome == 'failure'
  uses: ./.github/actions/cached-dependencies
  with:
  run: |
  apt-get-install
  - name: Install python dependencies
  + if: steps.check.outcome == 'failure'
  uses: ./.github/actions/cached-dependencies
  with:
  run: |
  pip-upgrade
  pip install -r requirements/testing.txt
  - name: Setup postgres
  + if: steps.check.outcome == 'failure'
  uses: ./.github/actions/cached-dependencies
  with:
  run: |
  setup-postgres
  - name: Import test data
  + if: steps.check.outcome == 'failure'
  uses: ./.github/actions/cached-dependencies
  with:
  run: |
  testdata
  - name: Install npm dependencies
  + if: steps.check.outcome == 'failure'
  uses: ./.github/actions/cached-dependencies
  with:
  run: |
  npm-install
  - name: Build javascript packages
  + if: steps.check.outcome == 'failure'
  uses: ./.github/actions/cached-dependencies
  with:
  run: |
  build-instrumented-assets
  - name: Install cypress
  + if: steps.check.outcome == 'failure'
  uses: ./.github/actions/cached-dependencies
  with:
  run: |
  cypress-install
  - name: Run Cypress
  + if: steps.check.outcome == 'failure'
  uses: ./.github/actions/cached-dependencies
  env:
  CYPRESS_BROWSER: ${{ matrix.browser }}
  