-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
instruct GitHub Actions to run upon pull requests according to the docs
- Loading branch information
1 parent
727acc4
commit 728261d
Showing
2 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,42 @@ | ||
name: Python package | ||
name: Powertools Python | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
paths: | ||
- "python/**" | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
paths: | ||
- 'python/**' | ||
- "python/**" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.6, 3.7] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
make dev | ||
working-directory: ./python/ | ||
- name: Formatting and Linting | ||
run: | | ||
make lint | ||
working-directory: ./python/ | ||
- name: Test with pytest | ||
run: | | ||
make test | ||
working-directory: ./python/ | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
make dev | ||
working-directory: ./python/ | ||
- name: Formatting and Linting | ||
run: | | ||
make lint | ||
working-directory: ./python/ | ||
- name: Test with pytest | ||
run: | | ||
make test | ||
working-directory: ./python/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ target: | |
@$(MAKE) pr | ||
|
||
dev: | ||
pip install --upgrade pipenv | ||
pipenv install | ||
pipenv install -d | ||
|
||
|