-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #262 from Pylons/workflows
Add GH actions
- Loading branch information
Showing
3 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |