Skip to content

Commit cf40048

Browse files
authored
ci: run examples on prod-deps only (#402)
* ci: run examples on prod-deps only Signed-off-by: Jan Kowalleck <[email protected]> * ci: simplify ci Signed-off-by: Jan Kowalleck <[email protected]> --------- Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 058f386 commit cf40048

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/poetry.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ jobs:
134134
architecture: 'x64'
135135

136136
- name: Validate Python Environment
137-
run: import sys; print('Python %s on %s in %s' % (sys.version, sys.platform, sys.getdefaultencoding()))
138137
shell: python
138+
run: |
139+
import sys
140+
print('Python %s on %s in %s' % (sys.version, sys.platform, sys.getdefaultencoding()))
139141
140142
- name: Install poetry
141143
# see https://github.com/marketplace/actions/setup-poetry
@@ -167,12 +169,10 @@ jobs:
167169
path: ${{ env.REPORTS_DIR }}
168170
if-no-files-found: error
169171

170-
build-and-run-examples:
172+
examples:
171173
name: Examples
172174
runs-on: ubuntu-latest
173175
timeout-minutes: 15
174-
strategy:
175-
fail-fast: false
176176
steps:
177177
- name: Checkout
178178
# see https://github.com/actions/checkout
@@ -183,15 +183,17 @@ jobs:
183183
with:
184184
python-version: '>=3.7 <=3.11' # supported version range
185185
- name: Validate Python Environment
186-
run: import sys; print('Python %s on %s in %s' % (sys.version, sys.platform, sys.getdefaultencoding()))
187186
shell: python
187+
run: |
188+
import sys
189+
print('Python %s on %s in %s' % (sys.version, sys.platform, sys.getdefaultencoding()))
188190
- name: Install poetry
189191
# see https://github.com/marketplace/actions/setup-poetry
190192
uses: Gr1N/setup-poetry@v8
191193
with:
192194
poetry-version: ${{ env.POETRY_VERSION }}
193-
- name: Install project
194-
run: poetry install
195+
- name: Install package and prod dependencies
196+
run: poetry install --only=main -vvv
195197
- name: run all examples
196198
run: >
197199
find examples -type f -name '*.py' -print0

0 commit comments

Comments
 (0)