From 2b538bae09b643acdea76e4bd5b49f5605fddc5e Mon Sep 17 00:00:00 2001 From: Jordan Storms Date: Thu, 8 Jul 2021 15:45:13 -0400 Subject: [PATCH] add workflow on pull request --- .../.git-hooks}/detect-api-keys.py | 0 .github/workflows/build.yml | 16 ++++++++-------- .pre-commit-config.yaml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) rename {.git-hooks => .github/.git-hooks}/detect-api-keys.py (100%) diff --git a/.git-hooks/detect-api-keys.py b/.github/.git-hooks/detect-api-keys.py similarity index 100% rename from .git-hooks/detect-api-keys.py rename to .github/.git-hooks/detect-api-keys.py diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f7da714..ffef7030 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: build -on: push +on: [push, pull_request] jobs: lint: @@ -17,15 +17,15 @@ jobs: - name: Install dependencies run: | - pip install virtualenv - virtualenv venv - source venv/bin/activate - pip install .[dev] + pip install virtualenv + virtualenv venv + source venv/bin/activate + pip install .[dev] - name: Check formatting run: | - source venv/bin/activate - ./scripts/check_format.sh + source venv/bin/activate + ./scripts/check_format.sh - name: Lint run: | @@ -59,7 +59,7 @@ jobs: run: | source venv/bin/activate nose2 -v - + integration-test: runs-on: ubuntu-latest strategy: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d793e0b..21289041 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,6 +14,6 @@ repos: - id: detect-api-keys name: detect-api-keys description: Checks for AWS or Datadog API keys - entry: ".git-hooks/detect-api-keys.py" + entry: ".github/.git-hooks/detect-api-keys.py" language: python exclude: tests