Skip to content

Commit

Permalink
only run integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
strickvl committed Jan 4, 2024
1 parent 3362082 commit 7c5d1f4
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/setup-python-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,47 +105,47 @@ jobs:
runners_cache_access_key_id: ${{ secrets.RUNNERS_CACHE_ACCESS_KEY_ID }}
runners_cache_secret_access_key: ${{ secrets.RUNNERS_CACHE_SECRET_ACCESS_KEY }}

# - name: Setup tmate session before tests
# if: ${{ inputs.enable_tmate == 'before-tests' }}
# uses: mxschmitt/[email protected]

# # - name: Lint check
# # run: |
# # bash scripts/lint.sh

# - name: Spelling checker
# uses: crate-ci/[email protected]
# with:
# files: "."
# config: ./.typos.toml
# # Only run the spell check on ubuntu-latest and python 3.8
# if: ${{ inputs.os == 'ubuntu-dind-runners' && inputs.python-version == '3.8' }}
- name: Setup tmate session before tests
if: ${{ inputs.enable_tmate == 'before-tests' }}
uses: mxschmitt/[email protected]

# - name: Docstring check
# run: bash scripts/docstring.sh
# # Only run the docstring check on ubuntu-latest and python 3.8
# if: ${{ inputs.os == 'ubuntu-dind-runners' && inputs.python-version == '3.8' }}
- name: Lint check
run: |
bash scripts/lint.sh
# - name: Security check
# run: bash scripts/check-security.sh

# - name: Markdown link check
# uses: gaurav-nelson/[email protected]
# with:
# use-quiet-mode: 'yes'
# use-verbose-mode: 'no'
# folder-path: './examples, ./docs/book, ./src'
# file-path: './README.md, ./LICENSE, ./RELEASE_NOTES.md, CODE-OF-CONDUCT.md, CONTRIBUTING.md, CLA.md, RELEASE_NOTES.md, ROADMAP.md'
# config-file: .github/workflows/markdown_check_config.json
# continue-on-error: true
# # Only run the markdown link check on ubuntu-latest and python 3.8
# if: ${{ inputs.os == 'ubuntu-dind-runners' && inputs.python-version == '3.8' }}
- name: Spelling checker
uses: crate-ci/[email protected]
with:
files: "."
config: ./.typos.toml
# Only run the spell check on ubuntu-latest and python 3.8
if: ${{ inputs.os == 'ubuntu-dind-runners' && inputs.python-version == '3.8' }}

# - name: Check for alembic branch divergence
# env:
# ZENML_DEBUG: 0
# run: |
# bash scripts/check-alembic-branches.sh
- name: Docstring check
run: bash scripts/docstring.sh
# Only run the docstring check on ubuntu-latest and python 3.8
if: ${{ inputs.os == 'ubuntu-dind-runners' && inputs.python-version == '3.8' }}

- name: Security check
run: bash scripts/check-security.sh

- name: Markdown link check
uses: gaurav-nelson/[email protected]
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'no'
folder-path: './examples, ./docs/book, ./src'
file-path: './README.md, ./LICENSE, ./RELEASE_NOTES.md, CODE-OF-CONDUCT.md, CONTRIBUTING.md, CLA.md, RELEASE_NOTES.md, ROADMAP.md'
config-file: .github/workflows/markdown_check_config.json
continue-on-error: true
# Only run the markdown link check on ubuntu-latest and python 3.8
if: ${{ inputs.os == 'ubuntu-dind-runners' && inputs.python-version == '3.8' }}

- name: Check for alembic branch divergence
env:
ZENML_DEBUG: 0
run: |
bash scripts/check-alembic-branches.sh
- name: Run unit tests
env:
Expand All @@ -158,9 +158,9 @@ jobs:
# if: ${{ inputs.os == 'ubuntu-dind-runners' && inputs.python-version == '3.8' }}
# uses: codecov/codecov-action@v2

# - name: Setup tmate session after tests
# if: ${{ inputs.enable_tmate == 'always' || (inputs.enable_tmate == 'on-failure' && failure()) }}
# uses: mxschmitt/[email protected]
- name: Setup tmate session after tests
if: ${{ inputs.enable_tmate == 'always' || (inputs.enable_tmate == 'on-failure' && failure()) }}
uses: mxschmitt/[email protected]

- name: Verify Python Env unaffected
run: |
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test-me.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ concurrency:
cancel-in-progress: true

jobs:
custom-ubuntu-runners-setup-and-test-python:
if: github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-dind-runners]
python-version: ["3.8", "3.9", "3.10", "3.11"]
fail-fast: false
uses: ./.github/workflows/setup-python-environment.yml
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
secrets: inherit
# custom-ubuntu-runners-setup-and-test-python:
# if: github.event.pull_request.draft == false
# strategy:
# matrix:
# os: [ubuntu-dind-runners]
# python-version: ["3.8", "3.9", "3.10", "3.11"]
# fail-fast: false
# uses: ./.github/workflows/setup-python-environment.yml
# with:
# python-version: ${{ matrix.python-version }}
# os: ${{ matrix.os }}
# secrets: inherit

custom-ubuntu-runners-integration-test:
needs:
Expand Down

0 comments on commit 7c5d1f4

Please sign in to comment.