File tree Expand file tree Collapse file tree 3 files changed +34
-37
lines changed Expand file tree Collapse file tree 3 files changed +34
-37
lines changed Original file line number Diff line number Diff line change 83
83
run : poetry install
84
84
- name : Check security
85
85
run : poetry run bandit -sB105 -r .
86
+
87
+ tests :
88
+ runs-on : ubuntu-latest
89
+ strategy :
90
+ matrix :
91
+ lib :
92
+ - scaleway-core
93
+ - scaleway
94
+ - scaleway-async
95
+ defaults :
96
+ run :
97
+ working-directory : ${{ matrix.lib }}
98
+ steps :
99
+ - uses : actions/checkout@v3
100
+ - name : Set up Python
101
+ uses : actions/setup-python@v4
102
+ with :
103
+ python-version : 3.8
104
+ - name : Install poetry
105
+ run : |
106
+ pip install poetry
107
+ poetry --version
108
+ - name : Install dependencies and library
109
+ run : poetry install
110
+ - name : Run tests
111
+ run : poetry run python -m unittest discover -s tests -v
112
+ env :
113
+ SCW_ACCESS_KEY : ${{ secrets.SCW_ACCESS_KEY }}
114
+ SCW_SECRET_KEY : ${{ secrets.SCW_SECRET_KEY }}
115
+ SCW_DEFAULT_PROJECT_ID : ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
116
+ SCW_DEFAULT_REGION : ${{ secrets.SCW_DEFAULT_REGION }}
117
+ SCW_DEFAULT_ZONE : ${{ secrets.SCW_DEFAULT_ZONE }}
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: Generate documentation
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - main
5
7
pull_request :
6
8
workflow_dispatch :
7
9
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments