File: pullrequests.yml

package info (click to toggle)
flask-rebar 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,852 kB
  • sloc: python: 9,539; javascript: 20; makefile: 16
file content (69 lines) | stat: -rw-r--r-- 1,813 bytes parent folder | download
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
60
61
62
63
64
65
66
67
68
69
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.10"
        - 3.11
        - 3.12
        - 3.13
        - 3.14
        marshmallow:
        - "'marshmallow<4'"
        - "'marshmallow==4.1.*'"
        - "'marshmallow>4.2.0'"
        flask:
        - flask=='2.3.*' werkzeug=='2.3.*'
        - flask=='3.0.*' werkzeug=='3.0.*'
        - flask=='3.1.*' werkzeug=='3.1.*'

    steps:
    - uses: actions/checkout@v3
    - name: Set up Python:${{ matrix.python }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python }}
    - name: "Test with ${{matrix.libraries}}"
      run: |
        python -m pip install -U pip
        python -m pip install '.[dev,enum]' ${{matrix.flask}} ${{matrix.marshmallow}}
        python -m pip freeze
    - name: Run Tests
      run: |
        python -m pytest -v -ra --junitxml=pytest.xml
    - name: Publish Test Report
      uses: mikepenz/action-junit-report@v3
      if: always()
      with:
        report_paths: pytest.xml
        check_name: "JUnit Report python${{matrix.python}} ${{matrix.marshmallow}} ${{matrix.flask}}"

  formatter:
    name: Format using Black
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Set up Python 3.11
      uses: actions/setup-python@v4
      with:
        python-version: 3.11
    - name: "Install dependencies"
      run: |
        python -m pip install -U pip
        python -m pip install '.[dev]'
        python -m pip freeze
    - name: Run black
      run: |
        python -m black --check --diff .
    - name: Run flake8
      run: |
        python -m flake8 .