diff --git a/.github/actions/code_check/action.yml b/.github/actions/code_check/action.yml index ebc459ba..fd219257 100644 --- a/.github/actions/code_check/action.yml +++ b/.github/actions/code_check/action.yml @@ -10,4 +10,8 @@ runs: source python-testing-environment/bin/activate pip install -e .[CI-CD] pre-commit install --install-hooks - pre-commit run --all-files + if [ "${GITHUB_REF}" = "refs/heads/main" ]; then + SKIP=no-commit-to-branch pre-commit run --all-files + else + pre-commit run --all-files + fi diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index c414a8d6..2b4b45df 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -19,8 +19,6 @@ jobs: meshpy-code-check: name: Code check runs-on: ubuntu-latest - container: - image: ghcr.io/4c-multiphysics/4c:latest defaults: run: shell: bash