summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2019-09-19 20:06:32 -0700
committerBert JW Regeer <bertjw@regeer.org>2019-09-19 20:41:35 -0700
commitd77c2cf6b04c4c2a7fa0532d36638eec8f109731 (patch)
treeee9d3f59132665e1f8801f11e64b8ce7aa7e83be
parent05e965e02f9d73fa6db18a120da1bebcfe429ca2 (diff)
downloadwaitress-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.
-rw-r--r--.github/workflows/ci-linux.yml57
-rw-r--r--.github/workflows/ci-windows.yml27
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 }}