Skip to content

Commit 59de03f

Browse files
authored
add workflow on pull request (#152)
1 parent fb2d782 commit 59de03f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
File renamed without changes.

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: build
22

3-
on: push
3+
on: [push, pull_request]
44

55
jobs:
66
lint:
@@ -17,15 +17,15 @@ jobs:
1717

1818
- name: Install dependencies
1919
run: |
20-
pip install virtualenv
21-
virtualenv venv
22-
source venv/bin/activate
23-
pip install .[dev]
20+
pip install virtualenv
21+
virtualenv venv
22+
source venv/bin/activate
23+
pip install .[dev]
2424
2525
- name: Check formatting
2626
run: |
27-
source venv/bin/activate
28-
./scripts/check_format.sh
27+
source venv/bin/activate
28+
./scripts/check_format.sh
2929
3030
- name: Lint
3131
run: |
@@ -59,7 +59,7 @@ jobs:
5959
run: |
6060
source venv/bin/activate
6161
nose2 -v
62-
62+
6363
integration-test:
6464
runs-on: ubuntu-latest
6565
strategy:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ repos:
1414
- id: detect-api-keys
1515
name: detect-api-keys
1616
description: Checks for AWS or Datadog API keys
17-
entry: ".git-hooks/detect-api-keys.py"
17+
entry: ".github/.git-hooks/detect-api-keys.py"
1818
language: python
1919
exclude: tests

0 commit comments

Comments
 (0)