Skip to content

Commit

Permalink
fix: attempt to make GitHub Actions work #1
Browse files Browse the repository at this point in the history
  • Loading branch information
heitorlessa committed Jan 9, 2020
1 parent 02c3f5d commit 694337b
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/pythonpackage.yml
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/

0 comments on commit 694337b

Please sign in to comment.