From 80d1730dce106ccc3c9013f711a531efc3a0f9a0 Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Tue, 27 Feb 2024 07:43:18 -0700 Subject: [PATCH] Change workflows from one to two (#36) --- .github/workflows/pre-commit.yml | 14 ++++++++++++++ .github/workflows/test.yml | 5 ----- 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..556a0a6 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,14 @@ +name: Run pre-commit + +on: + push: + branches: main + pull_request: + branches: main + workflow_dispatch: + +jobs: + pre-commit: + uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main + with: + commands: pip install pytest & pip install -e . diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 643340f..d903f82 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,8 +36,3 @@ jobs: verbose: true # optional (default = false) - name: Test cpp-linter-hooks run: sh testing/run.sh - pre-commit: - needs: [test] - uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main - with: - commands: pip install pytest & pip install -e .