Skip to content

Commit e6251c0

Browse files
committed
chore: add nightly
1 parent 5c2233a commit e6251c0

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Nightly Tests
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
6+
permissions:
7+
actions: read
8+
9+
jobs:
10+
nightly:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python: ["3.9", "3.11", "3.13"]
15+
products:
16+
- account
17+
- applesilicon
18+
- baremetal
19+
- billing
20+
- block
21+
- cockpit
22+
- container
23+
- dedibox
24+
- domain
25+
- edge_services
26+
- flexibleip
27+
- function
28+
- iam
29+
- inference
30+
- init
31+
- instance
32+
- iot
33+
- ipam
34+
- jobs
35+
- k8s
36+
- key_manager
37+
- lb
38+
- login
39+
- marketplace
40+
- mnq
41+
- mongodb
42+
- object
43+
- rdb
44+
- redis
45+
- registry
46+
- serverless_sqldb
47+
- secret
48+
- tem
49+
- vpc
50+
- vpcgw
51+
- webhosting
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v4
55+
- name: Setup Python
56+
uses: actions/setup-python@v5
57+
with:
58+
python-version: ${{ matrix.python-version }}
59+
cache: "poetry"
60+
- name: Install dependencies and library
61+
run: poetry install
62+
- name: Run Tests
63+
run: poetry run pytest -v ./internal/namespaces/${{ matrix.products }}/... -timeout=4h
64+
env:
65+
PYTHON_UPDATE_CASSETTES: true
66+
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
67+
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
68+
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
69+
SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
70+
71+
72+

0 commit comments

Comments
 (0)