Skip to content

Synchronize properly repair/insert test #583

Synchronize properly repair/insert test

Synchronize properly repair/insert test #583

name: Pull Request CI
on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review] # Defaults + ready_for_review
jobs:
check-if-docs-only:
uses: ./.github/workflows/task-check-docs.yml
basic-tests:
name: basic tests
runs-on: ubuntu-latest
needs: check-if-docs-only
if: needs.check-if-docs-only.outputs.only-docs-changed == 'false'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.number && format('refs/pull/{0}/merge', github.event.number) || github.head_ref }}
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install dependencies
run: sudo .install/install_script.sh
- name: install python packages
run: pip3 install -r requirements.txt
- name: check format
run: make check-format
- name: unit tests
run: make unit_test
- name: flow tests
run: make flow_test VERBOSE=1
coverage:
needs: [basic-tests, check-if-docs-only]
if: ${{ !github.event.pull_request.draft && needs.check-if-docs-only.outputs.only-docs-changed == 'false' }}
uses: ./.github/workflows/coverage.yml
secrets: inherit
codeql-analysis:
needs: [check-if-docs-only]
if: ${{ !github.event.pull_request.draft && needs.check-if-docs-only.outputs.only-docs-changed == 'false' }}
uses: ./.github/workflows/codeql-analysis.yml
secrets: inherit
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.number && format('refs/pull/{0}/merge', github.event.number) || github.head_ref }}
- name: Spellcheck
uses: rojopolis/spellcheck-github-actions@v0
with:
config_path: .github/spellcheck-settings.yml
task_name: Markdown
pr-validation:
needs:
- check-if-docs-only
- basic-tests
- coverage
- codeql-analysis
- spellcheck
runs-on: ubuntu-latest
if: ${{ !cancelled() }}
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1