|
9 | 9 | branches: [master]
|
10 | 10 |
|
11 | 11 | jobs:
|
| 12 | + generate: |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + python-version: ["3.10"] |
| 16 | + runs-on: ubuntu-latest |
| 17 | + steps: |
| 18 | + - uses: actions/checkout@v4 |
| 19 | + - name: Set up Python ${{ matrix.python-version }} |
| 20 | + uses: actions/setup-python@v5 |
| 21 | + with: |
| 22 | + python-version: ${{ matrix.python-version }} |
| 23 | + - name: Install Poetry |
| 24 | + uses: snok/install-poetry@v1 |
| 25 | + with: |
| 26 | + virtualenvs-create: false |
| 27 | + - name: Install dependencies |
| 28 | + run: poetry install --sync --only dev |
| 29 | + - name: Generate |
| 30 | + run: make generate |
| 31 | + - name: Check for changes |
| 32 | + run: git --no-pager diff --exit-code . |
| 33 | + |
12 | 34 | lint:
|
| 35 | + strategy: |
| 36 | + matrix: |
| 37 | + python-version: ["3.10"] |
13 | 38 | runs-on: ubuntu-latest
|
14 | 39 | steps:
|
15 | 40 | - uses: actions/checkout@v4
|
16 |
| - - name: Set up Python 3.10 |
| 41 | + - name: Set up Python ${{ matrix.python-version }} |
17 | 42 | uses: actions/setup-python@v5
|
18 | 43 | with:
|
19 |
| - python-version: "3.10" |
| 44 | + python-version: ${{ matrix.python-version }} |
20 | 45 | - name: Install Poetry
|
21 | 46 | uses: snok/install-poetry@v1
|
22 | 47 | with:
|
23 | 48 | virtualenvs-create: false
|
24 | 49 | - name: Install dependencies
|
25 |
| - run: | |
26 |
| - make install-dev |
| 50 | + run: poetry install --sync --only dev |
27 | 51 | - name: Lint
|
28 |
| - run: | |
29 |
| - make lint |
| 52 | + run: make lint |
30 | 53 |
|
31 | 54 | mlserver:
|
32 | 55 | strategy:
|
|
72 | 95 | with:
|
73 | 96 | virtualenvs-create: false
|
74 | 97 | - name: Install Dependencies
|
75 |
| - run: | |
76 |
| - poetry install --sync --only dev |
| 98 | + run: poetry install --sync --only dev |
77 | 99 | - name: Test
|
78 |
| - run: | |
79 |
| - tox -e mlserver |
| 100 | + run: tox -e mlserver |
80 | 101 |
|
81 | 102 | runtimes:
|
82 | 103 | strategy:
|
@@ -116,11 +137,9 @@ jobs:
|
116 | 137 | with:
|
117 | 138 | virtualenvs-create: false
|
118 | 139 | - name: Install Dependencies
|
119 |
| - run: | |
120 |
| - poetry install --sync --only dev |
| 140 | + run: poetry install --sync --only dev |
121 | 141 | - name: Test
|
122 |
| - run: | |
123 |
| - tox -c ./runtimes/${{ matrix.tox-environment }} |
| 142 | + run: tox -c ./runtimes/${{ matrix.tox-environment }} |
124 | 143 |
|
125 | 144 | # Ensure that having all the runtimes installed together works
|
126 | 145 | all-runtimes:
|
@@ -180,8 +199,6 @@ jobs:
|
180 | 199 | with:
|
181 | 200 | virtualenvs-create: false
|
182 | 201 | - name: Install Dependencies
|
183 |
| - run: | |
184 |
| - poetry install --sync --only dev |
| 202 | + run: poetry install --sync --only dev |
185 | 203 | - name: Test
|
186 |
| - run: | |
187 |
| - tox -e all-runtimes |
| 204 | + run: tox -e all-runtimes |
0 commit comments