Skip to content

Commit 49cb7f0

Browse files
committed
ci: install poetry to nightly workflow
1 parent dab7ce7 commit 49cb7f0

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/nightly.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
name: Nightly Tests
2+
#on:
3+
# schedule:
4+
# - cron: '0 0 * * *'
5+
26
on:
3-
schedule:
4-
- cron: '0 0 * * *'
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
merge_group:
12+
513

614
permissions:
715
actions: read
@@ -11,7 +19,7 @@ jobs:
1119
strategy:
1220
fail-fast: false
1321
matrix:
14-
python: [ '3.10' ,'3.11', '3.12', '3.13' ]
22+
python-version: [ '3.10' ,'3.11', '3.12', '3.13' ]
1523
products:
1624
- instance
1725
- k8s
@@ -26,22 +34,21 @@ jobs:
2634
- uses: actions/checkout@v5
2735
- name: Install poetry
2836
run: pipx install poetry
29-
- uses: actions/checkout@v4
3037
- name: Setup Python
3138
uses: actions/setup-python@v5
3239
with:
33-
python-version: ${{ matrix.python }}
40+
python-version: ${{ matrix.python-version }}
3441
cache: "poetry"
3542
- name: Install dependencies and library
3643
run: poetry install
3744
- name: Run Tests
38-
run: poetry run pytest -v --timeout=14400 ./${{ matrix.lib }}/${{ matrix.products }}/
3945
env:
4046
PYTHON_UPDATE_CASSETTES: true
4147
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
4248
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
4349
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
4450
SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
51+
run: poetry run pytest -v --timeout=14400 ./${{ matrix.lib }}/${{ matrix.products }}/
4552
- name: Ping on failure
4653
if: ${{ failure() }}
4754
run: |

0 commit comments

Comments
 (0)