diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2019-09-19 20:06:32 -0700 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2019-09-19 20:41:35 -0700 |
commit | d77c2cf6b04c4c2a7fa0532d36638eec8f109731 (patch) | |
tree | ee9d3f59132665e1f8801f11e64b8ce7aa7e83be /.github/workflows | |
parent | 05e965e02f9d73fa6db18a120da1bebcfe429ca2 (diff) | |
download | waitress-d77c2cf6b04c4c2a7fa0532d36638eec8f109731.tar.gz |
Setup GH actions
This sets up Github Actions to be used. Right now alongside Appveyor and
Travis, but I am thinking this will eventually take over.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci-linux.yml | 57 | ||||
-rw-r--r-- | .github/workflows/ci-windows.yml | 27 |
2 files changed, 84 insertions, 0 deletions
diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml new file mode 100644 index 0000000..f2bed7b --- /dev/null +++ b/.github/workflows/ci-linux.yml @@ -0,0 +1,57 @@ +name: Build/test on Linux +# This workflow is triggered on pushes to the repository. +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + tox: [ + {'py': '2.7', 'env': 'py27'}, + {'py': '3.5', 'env': 'py35'}, + {'py': '3.6', 'env': 'py36'}, + {'py': '3.7', 'env': 'py37'}, + {'py': 'pypy2', 'env': 'pypy'}, + {'py': 'pypy3', 'env': 'pypy3'} + ] + name: "Python: ${{ matrix.tox.py }}" + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.tox.py }} + architecture: x64 + - run: pip install tox + - name: Running tox + run: tox -e ${{ matrix.tox.env }} + coverage: + runs-on: ubuntu-latest + name: Validate coverage for Python 2/3 + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: 2.7 + architecture: x64 + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: 3.5 + architecture: x64 + - run: pip install tox + - run: tox -e py35-cover,py27-cover,coverage + docs: + runs-on: ubuntu-latest + name: Build the documentation + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: 3.5 + architecture: x64 + - run: pip install tox + - run: tox -e docs diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml new file mode 100644 index 0000000..f5395ab --- /dev/null +++ b/.github/workflows/ci-windows.yml @@ -0,0 +1,27 @@ +name: Build/test on Windows +# This workflow is triggered on pushes to the repository. +on: [push] + +jobs: + test: + runs-on: windows-2019 + strategy: + matrix: + tox: [ + {'py': '2.7', 'env': 'py27'}, + {'py': '3.5', 'env': 'py35'}, + {'py': '3.6', 'env': 'py36'}, + {'py': '3.7', 'env': 'py37'}, + ] + architecture: ['x86', 'x64'] + name: "Python: ${{ matrix.tox.py }} (${{ matrix.architecture }})" + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.tox.py }} + architecture: ${{ matrix.architecture }} + - run: pip install tox + - name: Running tox + run: tox -e ${{ matrix.tox.env }} |