diff --git a/.github/workflows/python-tox.yml b/.github/workflows/python-tox.yml new file mode 100644 index 00000000..ec5cf636 --- /dev/null +++ b/.github/workflows/python-tox.yml @@ -0,0 +1,21 @@ +on: [pull_request, push] +jobs: + build: + # Prevent duplicate builds for 'internal' pull requests on existing commits + # Credit: https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012 + if: github.event.push || github.event.pull_request.head.repo.full_name != github.repository + runs-on: ubuntu-latest + strategy: + matrix: + python: [2.7, 3.5, 3.6, 3.7, 3.8, pypy-2.7, pypy3] + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - run: pip install tox + - run: tox -e py + - if: ${{ always() }} + run: python debug-info.py