Skip to content

Commit

Permalink
Merge pull request #262 from Pylons/workflows
Browse files Browse the repository at this point in the history
Add GH actions
  • Loading branch information
digitalresistor committed Dec 12, 2019
2 parents d20f4db + 9871552 commit 0b3e3cf
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
@@ -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 }}
27 changes: 27 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 0b3e3cf

Please sign in to comment.