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