File tree Expand file tree Collapse file tree 2 files changed +32
-26
lines changed
Expand file tree Collapse file tree 2 files changed +32
-26
lines changed Original file line number Diff line number Diff line change 1111 with :
1212 fetch-depth : 0
1313 - uses : wagoid/commitlint-github-action@v3
14+
15+ tests :
16+ runs-on : ubuntu-latest
17+ strategy :
18+ matrix :
19+ lib :
20+ - scaleway-core
21+ - scaleway
22+ - scaleway-async
23+ steps :
24+ - uses : actions/checkout@v3
25+ - name : Set up Python
26+ uses : actions/setup-python@v4
27+ with :
28+ python-version : 3.8
29+ - name : Install poetry
30+ working-directory : ${{ matrix.lib }}
31+ run : |
32+ pip install poetry
33+ poetry --version
34+ - name : Install dependencies and library
35+ working-directory : ${{ matrix.lib }}
36+ run : poetry install
37+ - name : Run tests
38+ working-directory : ${{ matrix.lib }}
39+ run : poetry run python -m unittest discover -s tests -v
40+ env :
41+ SCW_ACCESS_KEY : ${{ secrets.SCW_ACCESS_KEY }}
42+ SCW_SECRET_KEY : ${{ secrets.SCW_SECRET_KEY }}
43+ SCW_DEFAULT_PROJECT_ID : ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
44+ SCW_DEFAULT_REGION : ${{ secrets.SCW_DEFAULT_REGION }}
45+ SCW_DEFAULT_ZONE : ${{ secrets.SCW_DEFAULT_ZONE }}
Original file line number Diff line number Diff line change 8080 - name : Check security
8181 working-directory : ${{ matrix.lib }}
8282 run : poetry run bandit -sB105 -r .
83-
84- tests :
85- runs-on : ubuntu-latest
86- strategy :
87- matrix :
88- lib :
89- - scaleway-core
90- - scaleway
91- - scaleway-async
92- steps :
93- - uses : actions/checkout@v3
94- - name : Set up Python
95- uses : actions/setup-python@v4
96- with :
97- python-version : 3.8
98- - name : Install poetry
99- working-directory : ${{ matrix.lib }}
100- run : |
101- pip install poetry
102- poetry --version
103- - name : Install dependencies and library
104- working-directory : ${{ matrix.lib }}
105- run : poetry install
106- - name : Run tests
107- working-directory : ${{ matrix.lib }}
108- run : poetry run python -m unittest discover -s tests -v
You can’t perform that action at this time.
0 commit comments