diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml new file mode 100644 index 000000000..9e152f581 --- /dev/null +++ b/.github/workflows/pythonpackage.yml @@ -0,0 +1,29 @@ +name: Python package + +on: + push: + paths: + - '**.py' + +jobs: + lint_and_test: + + runs-on: ubuntu-latest + timeout-minutes: 10 + strategy: + max-parallel: 4 + matrix: + python-version: [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: Lint with flake8 + uses: tayfun/flake8-your-pr@1.0.1 + - name: Test with pytest + run: | + pip install pytest + pytest