Skip to content

Commit e158ac8

Browse files
authored
Add github actions to workflow (plangrid#177)
* add workflows for github actions + removed python3.4 because it is end of lifed and doesn't exist on github. + removed marshmallow 3.0.0rc5 since newer 3 versions have changed the api. Also, marshmallow 3.0 seems to have dropped support for python2. + remove .travis.yml
1 parent 20076f6 commit e158ac8

File tree

5 files changed

+94
-50
lines changed

5 files changed

+94
-50
lines changed

.github/workflows/pullrequests.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: flask-rebar Pull Request Tests
2+
3+
on:
4+
- pull_request
5+
6+
jobs:
7+
tests:
8+
name: Testing on Python ${{ matrix.python }}
9+
runs-on: ubuntu-latest
10+
strategy:
11+
max-parallel: 20
12+
fail-fast: false
13+
matrix:
14+
python:
15+
- 2.7
16+
- 3.5
17+
- 3.6
18+
- 3.7
19+
- 3.8
20+
libraries:
21+
- marshmallow=='2.13.*' flask=='0.10.*' werkzeug=='0.16.1'
22+
- marshmallow=='2.14.*' flask=='0.11.*' werkzeug=='0.16.1'
23+
- marshmallow=='2.15.*' flask=='0.12.*' werkzeug=='0.16.1'
24+
- marshmallow=='2.16.*' flask=='1.0.*' werkzeug=='1.*'
25+
- marshmallow=='2.17.*' flask=='1.1.*' werkzeug=='1.*'
26+
- marshmallow=='2.18.*' flask=='1.1.*' werkzeug=='1.*'
27+
- marshmallow=='2.19.*' flask=='1.1.*' werkzeug=='1.*'
28+
- marshmallow=='2.20.*' flask=='1.1.*' werkzeug=='1.*'
29+
steps:
30+
- uses: actions/checkout@v1
31+
- name: Set up Python:${{ matrix.python }}
32+
uses: actions/setup-python@v1
33+
with:
34+
python-version: ${{ matrix.python }}
35+
- name: "Test with ${{matrix.libraries}}"
36+
run: |
37+
pip install -U pip
38+
pip install '.[dev]' ${{matrix.libraries}}
39+
pip freeze
40+
- name: Run Tests
41+
run: |
42+
python -m pytest
43+
formatter:
44+
name: Format using Black
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v1
48+
- name: Set up Python 3.7
49+
uses: actions/setup-python@v1
50+
with:
51+
python-version: 3.7
52+
- name: "Install black"
53+
run: |
54+
python -m pip install -U pip
55+
python -m pip install black
56+
python -m pip freeze
57+
- name: Run black
58+
run: |
59+
python -m black --check --diff .

.github/workflows/tag.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: flask-rebar Pull Request Tests
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
build-n-publish:
10+
name: Build and publish Python 🐍 distributions 📦 to PyPI
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Set up Python 3.8
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.8
18+
- name: Install pep517
19+
run: |
20+
python -m pip install pep517 --user
21+
- name: Build a binary wheel and a source tarball
22+
run: |
23+
python -m pep517.build .
24+
- name: Publish distribution 📦 to PyPI
25+
uses: pypa/gh-action-pypi-publish@master
26+
with:
27+
password: ${{ secrets.pypi_password }}

.travis.yml

-50
This file was deleted.

pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ exclude = '''
66
| \.venv
77
)/
88
'''
9+
10+
[build-system]
11+
requires = [
12+
"setuptools >= 35.0.2",
13+
]
14+
build-backend = "setuptools.build_meta"

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal = 1

0 commit comments

Comments
 (0)