diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci-build-checks.yaml similarity index 72% rename from .github/workflows/ci.yaml rename to .github/workflows/ci-build-checks.yaml index 763fec9e0..3ea517e17 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci-build-checks.yaml @@ -2,37 +2,7 @@ name: Continuous Integration on: [pull_request] - jobs: - lint: - name: Lint check - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: '3.10' - architecture: 'x64' - - name: Install Lint tools - run: pip install --upgrade pip setuptools; pip install -r requirements.txt; - - name: Lint All - run: ./scripts/lint_all.sh - - format: - name: Formatting check - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: '3.10' - architecture: 'x64' - - name: Install Format tools - run: pip install --upgrade pip setuptools; pip install -r requirements.txt; sudo apt-get install -y clang-format-6.0 - - name: Format Check - run: ./scripts/format_check.sh - wheel-build: name: Wheel test runs-on: ubuntu-20.04 @@ -55,7 +25,6 @@ jobs: bazel-tests: name: Library tests runs-on: ubuntu-20.04 - needs: [lint, format] steps: - uses: actions/checkout@v1 @@ -78,7 +47,6 @@ jobs: # leak-tests: # name: Memory Leak tests # runs-on: ubuntu-20.04 - # needs: [lint, format] # # steps: # - uses: actions/checkout@v1 @@ -96,7 +64,7 @@ jobs: tutorials-test: name: Tutorial tests runs-on: ubuntu-20.04 - needs: [lint, format, wheel-build] + needs: wheel-build steps: - uses: actions/checkout@v1 diff --git a/.github/workflows/ci-file-checks.yaml b/.github/workflows/ci-file-checks.yaml new file mode 100644 index 000000000..163fb2b98 --- /dev/null +++ b/.github/workflows/ci-file-checks.yaml @@ -0,0 +1,34 @@ +name: CI file checks + +on: [pull_request] + +jobs: + lint: + name: Lint check + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + with: + python-version: '3.10' + architecture: 'x64' + - name: Install Lint tools + run: pip install --upgrade pip setuptools; pip install -r requirements.txt; + - name: Lint All + run: ./scripts/lint_all.sh + + format: + name: Formatting check + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + with: + python-version: '3.10' + architecture: 'x64' + - name: Install Format tools + run: pip install --upgrade pip setuptools; pip install -r requirements.txt; sudo apt-get install -y clang-format-6.0 + - name: Format Check + run: ./scripts/format_check.sh +