diff --git a/.github/workflows/pythonTests.yml b/.github/workflows/pythonTests.yml new file mode 100644 index 00000000..0abc546c --- /dev/null +++ b/.github/workflows/pythonTests.yml @@ -0,0 +1,31 @@ +name: Test python package +on: + workflow_dispatch: + push: + branches-ignore: + - 'gh-pages' + pull_request: + branches-ignore: + - 'gh-pages' +jobs: + pytest: + runs-on: ubuntu-latest + strategy: + max-parallel: 8 + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10.0-alpha - 3.10.0"] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install -e .[dev] + - name: Test with pytest + run: | + pytest + - name: Test install + run: | + python setup.py install