-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: attempt to make GitHub Actions work #1
- Loading branch information
1 parent
02c3f5d
commit 694337b
Showing
1 changed file
with
22 additions
and
23 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,37 +1,36 @@ | ||
name: Python package | ||
name: Powertools Python | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'python/**' | ||
paths: | ||
- "./python/**" | ||
push: | ||
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/ |