Skip to content

Commit bcb4662

Browse files
Laure-diremyleone
andauthored
ci: add poetry and fix directory path (#1194)
Co-authored-by: Rémy Léone <remy.leone@gmail.com>
1 parent 63b353e commit bcb4662

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

.github/workflows/nightly.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,16 @@ jobs:
1616
- instance
1717
- k8s
1818
- vpc
19+
lib:
20+
- scaleway
1921
runs-on: ubuntu-latest
22+
defaults:
23+
run:
24+
working-directory: ${{ matrix.lib }}
2025
steps:
26+
- uses: actions/checkout@v5
27+
- name: Install poetry
28+
run: pipx install poetry
2129
- uses: actions/checkout@v4
2230
- name: Setup Python
2331
uses: actions/setup-python@v5
@@ -27,7 +35,7 @@ jobs:
2735
- name: Install dependencies and library
2836
run: poetry install
2937
- name: Run Tests
30-
run: poetry run pytest -v ./internal/namespaces/${{ matrix.products }}/tests/... -timeout=4h
38+
run: poetry run pytest -v --timeout=14400 ./${{ matrix.lib }}/${{ matrix.products }}/
3139
env:
3240
PYTHON_UPDATE_CASSETTES: true
3341
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}

scaleway/poetry.lock

Lines changed: 29 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scaleway/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ python = ">=3.10"
2727
scaleway-core = "*"
2828
pyrefly = ">=0.24.2,<0.32.0"
2929
vcrpy = "^7.0.0"
30+
pytest-timeout = "^2.4.0"
3031

3132
[tool.poetry.group.dev.dependencies]
3233
scaleway-core = { path = "../scaleway-core", develop = true }

0 commit comments

Comments
 (0)