|
11 | 11 |
|
12 | 12 | jobs: |
13 | 13 | lint: |
14 | | - runs-on: ${{ matrix.os }} |
15 | | - strategy: |
16 | | - matrix: |
17 | | - python-version: [3.8] |
18 | | - os: [macos-13] |
| 14 | + runs-on: ubuntu-20.04 |
19 | 15 | steps: |
20 | | - - uses: actions/checkout@v1 |
21 | | - - name: Set up Python ${{ matrix.python-version }} |
22 | | - uses: actions/setup-python@v2 |
| 16 | + - uses: actions/checkout@v4 |
| 17 | + - name: Set up Python 3.9 |
| 18 | + uses: actions/setup-python@v5 |
23 | 19 | with: |
24 | | - python-version: ${{ matrix.python-version }} |
25 | | - - name: Install package |
| 20 | + python-version: '3.9' |
| 21 | + - name: Install dependencies |
26 | 22 | run: | |
27 | | - python -m pip install --upgrade pip |
28 | | - python -m pip install invoke .[dev] |
29 | | - - name: invoke lint |
| 23 | + pip install --upgrade "pip<=24.1" setuptools wheel |
| 24 | + python -m pip install invoke .[dev] |
| 25 | + - name: Run lint checks |
30 | 26 | run: invoke lint |
31 | 27 |
|
32 | 28 |
|
33 | | - # docs: |
34 | | - # runs-on: ${{ matrix.os }} |
35 | | - # strategy: |
36 | | - # matrix: |
37 | | - # python-version: ['3.8', '3.9', '3.10', '3.11'] |
38 | | - # os: [ubuntu-20.04] |
39 | | - # steps: |
40 | | - # - uses: actions/checkout@v1 |
41 | | - # - name: Set up Python ${{ matrix.python-version }} |
42 | | - # uses: actions/setup-python@v2 |
43 | | - # with: |
44 | | - # python-version: ${{ matrix.python-version }} |
45 | | - # - name: Install package |
46 | | - # run: pip install .[dev] |
47 | | - # - name: make docs |
48 | | - # run: make docs |
| 29 | + docs: |
| 30 | + runs-on: ubuntu-latest |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v4 |
| 33 | + - name: Set up Python 3.9 |
| 34 | + uses: actions/setup-python@v5 |
| 35 | + with: |
| 36 | + python-version: '3.9' |
| 37 | + - name: Install dependencies |
| 38 | + run: | |
| 39 | + python -m pip install --upgrade pip |
| 40 | + python -m pip install .[dev] |
| 41 | + - name: Build docs |
| 42 | + run: make docs |
49 | 43 |
|
50 | 44 |
|
51 | 45 | unit: |
52 | 46 | runs-on: ${{ matrix.os }} |
53 | 47 | strategy: |
54 | 48 | matrix: |
55 | | - python-version: ['3.8', '3.9', '3.10', '3.11'] |
56 | | - os: [ubuntu-latest, macos-13, windows-latest] |
| 49 | + python-version: ['3.9', '3.10', '3.11'] |
| 50 | + os: [ubuntu-latest, macos-latest, windows-latest] |
57 | 51 | steps: |
58 | | - - uses: actions/checkout@v1 |
| 52 | + - uses: actions/checkout@v4 |
59 | 53 | - name: Set up Python ${{ matrix.python-version }} |
60 | | - uses: actions/setup-python@v2 |
| 54 | + uses: actions/setup-python@v5 |
61 | 55 | with: |
62 | 56 | python-version: ${{ matrix.python-version }} |
63 | 57 | - name: Install package and dependencies |
64 | 58 | run: | |
65 | 59 | python -m pip install --upgrade pip |
66 | 60 | python -m pip install invoke .[test] |
67 | | - - name: invoke unit |
| 61 | + - name: Run unit tests |
68 | 62 | run: invoke unit |
69 | 63 |
|
70 | 64 |
|
71 | 65 | # minimum: |
72 | 66 | # runs-on: ${{ matrix.os }} |
73 | 67 | # strategy: |
74 | 68 | # matrix: |
75 | | - # python-version: ['3.8', '3.9', '3.10', '3.11'] |
76 | | - # os: [ubuntu-20.04, macos-latest] |
| 69 | + # python-version: ['3.9'] |
| 70 | + # os: [ubuntu-latest, macos-latest, windows-latest] |
77 | 71 | # steps: |
78 | | - # - uses: actions/checkout@v1 |
| 72 | + # - uses: actions/checkout@v4 |
79 | 73 | # - name: Set up Python ${{ matrix.python-version }} |
80 | | - # uses: actions/setup-python@v2 |
| 74 | + # uses: actions/setup-python@v5 |
81 | 75 | # with: |
82 | 76 | # python-version: ${{ matrix.python-version }} |
83 | 77 | # - name: Install package and dependencies |
84 | | - # run: pip install invoke .[test] |
85 | | - # - name: invoke minimum |
| 78 | + # run: | |
| 79 | + # python -m pip install --upgrade pip |
| 80 | + # python -m pip install invoke .[test] |
| 81 | + # - name: Run unit tests on minimum |
86 | 82 | # run: invoke minimum |
87 | | - |
88 | | - |
89 | | - # tutorials: |
90 | | - # runs-on: ${{ matrix.os }} |
91 | | - # strategy: |
92 | | - # matrix: |
93 | | - # python-version: ['3.8', '3.9', '3.10', '3.11'] |
94 | | - # os: [ubuntu-20.04, macos-latest, windows-latest] |
95 | | - # steps: |
96 | | - # - uses: actions/checkout@v1 |
97 | | - # - name: Set up Python ${{ matrix.python-version }} |
98 | | - # uses: actions/setup-python@v2 |
99 | | - # with: |
100 | | - # python-version: ${{ matrix.python-version }} |
101 | | - # - name: Install package and dependencies |
102 | | - # run: pip install invoke jupyter matplotlib . |
103 | | - # - name: invoke tutorials |
104 | | - # run: invoke tutorials |
0 commit comments