|
7 | 7 | branches: [master]
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - test: |
| 10 | + test-ubuntu-py38: |
11 | 11 | runs-on: ${{matrix.os}}
|
12 | 12 | timeout-minutes: 10
|
13 | 13 | strategy:
|
14 | 14 | fail-fast: false
|
15 | 15 | matrix:
|
16 |
| - os: [macos-latest, ubuntu-latest, windows-latest] |
| 16 | + os: [ubuntu-latest] |
17 | 17 | python-version:
|
18 |
| - - "3.7" |
19 | 18 | - "3.8"
|
20 |
| - - "3.9" |
21 |
| - - "3.10" |
22 | 19 |
|
23 | 20 | steps:
|
24 | 21 | - uses: actions/checkout@v2
|
|
61 | 58 | - name: Build Documentation
|
62 | 59 | run: |
|
63 | 60 | sphinx-build -b html docs/source/ docs/build/html
|
| 61 | +
|
| 62 | + test-ubuntu-py39-py310: |
| 63 | + runs-on: ${{matrix.os}} |
| 64 | + timeout-minutes: 10 |
| 65 | + strategy: |
| 66 | + fail-fast: false |
| 67 | + matrix: |
| 68 | + os: [ubuntu-latest] |
| 69 | + python-version: |
| 70 | + - "3.9" |
| 71 | + - "3.10" |
| 72 | + |
| 73 | + steps: |
| 74 | + - uses: actions/checkout@v2 |
| 75 | + |
| 76 | + - name: Set up Python ${{ matrix.python-version }} |
| 77 | + uses: actions/setup-python@v2 |
| 78 | + with: |
| 79 | + python-version: ${{ matrix.python-version }} |
| 80 | + |
| 81 | + - name: Upgrade pip version |
| 82 | + run: | |
| 83 | + python -m pip install --upgrade pip |
| 84 | +
|
| 85 | + - name: Install requirements |
| 86 | + run: | |
| 87 | + pip install -r requirements.txt |
| 88 | + pip install -r docs/requirements.txt |
| 89 | +
|
| 90 | + - name: Build package |
| 91 | + run: | |
| 92 | + python -m pip install . |
| 93 | +
|
| 94 | + - name: Run tests |
| 95 | + run: | |
| 96 | + python -m pytest --doctest-modules --cov=./ --cov-report=xml -s |
| 97 | +
|
| 98 | + - name: Build Documentation |
| 99 | + run: | |
| 100 | + sphinx-build -b html docs/source/ docs/build/html |
| 101 | +
|
| 102 | + test-macos-windows: |
| 103 | + runs-on: ${{matrix.os}} |
| 104 | + timeout-minutes: 10 |
| 105 | + strategy: |
| 106 | + fail-fast: false |
| 107 | + matrix: |
| 108 | + os: [macos-latest, windows-latest] |
| 109 | + python-version: |
| 110 | + - "3.8" |
| 111 | + - "3.9" |
| 112 | + - "3.10" |
| 113 | + |
| 114 | + steps: |
| 115 | + - uses: actions/checkout@v2 |
| 116 | + |
| 117 | + - name: Set up Python ${{ matrix.python-version }} |
| 118 | + uses: actions/setup-python@v2 |
| 119 | + with: |
| 120 | + python-version: ${{ matrix.python-version }} |
| 121 | + |
| 122 | + - name: Upgrade pip version |
| 123 | + run: | |
| 124 | + python -m pip install --upgrade pip |
| 125 | +
|
| 126 | + - name: Install requirements |
| 127 | + run: | |
| 128 | + pip install -r requirements.txt |
| 129 | + pip install -r docs/requirements.txt |
| 130 | +
|
| 131 | + - name: Build package |
| 132 | + run: | |
| 133 | + python -m pip install . |
| 134 | +
|
| 135 | + - name: Run tests |
| 136 | + run: | |
| 137 | + python -m pytest --doctest-modules --cov=./ --cov-report=xml -s |
| 138 | +
|
| 139 | + - name: Build Documentation |
| 140 | + run: | |
| 141 | + sphinx-build -b html docs/source/ docs/build/html |
0 commit comments