summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <xistence@0x58.com>2019-12-12 10:53:27 -0800
committerGitHub <noreply@github.com>2019-12-12 10:53:27 -0800
commit0b3e3cf815050c40cf13998150f21bc63212c65e (patch)
tree6203cbde5edb404a9038dd59bf46d94caf4dca1f
parentd20f4db95736534741e0fd177ea3fdd798fd84ca (diff)
parent98715528b889734fb69a0301fecb6764a863c9d6 (diff)
downloadwaitress-0b3e3cf815050c40cf13998150f21bc63212c65e.tar.gz
Merge pull request #262 from Pylons/workflows
Add GH actions
-rw-r--r--.github/workflows/ci-linux.yml57
-rw-r--r--.github/workflows/ci-macos.yml29
-rw-r--r--.github/workflows/ci-windows.yml27
3 files changed, 113 insertions, 0 deletions
diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml
new file mode 100644
index 0000000..a1c60ed
--- /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, pull_request]
+
+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-macos.yml b/.github/workflows/ci-macos.yml
new file mode 100644
index 0000000..d974654
--- /dev/null
+++ b/.github/workflows/ci-macos.yml
@@ -0,0 +1,29 @@
+name: Build/test on MacOS
+# This workflow is triggered on pushes to the repository.
+on: [push, pull_request]
+
+jobs:
+ test:
+ runs-on: macOS-latest
+ strategy:
+ matrix:
+ tox: [
+ {'py': '2.7', 'env': 'py27'},
+ {'py': '3.5', 'env': 'py35'},
+ {'py': '3.6', 'env': 'py36'},
+ {'py': '3.7', 'env': 'py37'},
+ ]
+ architecture: ['x64']
+ 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: ${{ matrix.architecture }}
+ - run: pip install tox
+ - name: Running tox
+ run: |
+ ulimit -n 4096
+ tox -e ${{ matrix.tox.env }}
diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml
new file mode 100644
index 0000000..e2ee5f6
--- /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, pull_request]
+
+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 }}