forked from plangrid/flask-rebar
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 1.62 KB
/
pullrequests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: flask-rebar Pull Request Tests
on:
- pull_request
jobs:
tests:
name: Testing on Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
max-parallel: 20
fail-fast: false
matrix:
python:
- 3.6
- 3.7
- 3.8
- 3.9
libraries:
- marshmallow=='3.0.*' flask=='1.0.*' werkzeug=='1.*'
- marshmallow=='3.1.*' flask=='1.1.*' werkzeug=='1.*'
- marshmallow=='3.2.*' flask=='1.1.*' werkzeug=='1.*'
- marshmallow=='3.3.*' flask=='1.1.*' werkzeug=='1.*'
- marshmallow=='3.4.*' flask=='1.1.*' werkzeug=='1.*'
- marshmallow=='3.5.*' flask=='1.1.*' werkzeug=='1.*'
- marshmallow=='3.6.*' flask=='1.1.*' werkzeug=='1.*'
- marshmallow=='3.7.*' flask=='1.1.*' werkzeug=='1.*'
steps:
- uses: actions/checkout@v1
- name: Set up Python:${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: "Test with ${{matrix.libraries}}"
run: |
pip install -U pip
pip install '.[dev]' ${{matrix.libraries}}
pip freeze
- name: Run Tests
run: |
python -m pytest
formatter:
name: Format using Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: "Install black"
run: |
python -m pip install -U pip
python -m pip install black==19.10b0
python -m pip freeze
- name: Run black
run: |
python -m black --check --diff .