Skip to content

Commit 331fa02

Browse files
authored
chore: merge pr and push workflows (#13)
1 parent b594169 commit 331fa02

File tree

3 files changed

+34
-37
lines changed

3 files changed

+34
-37
lines changed

.github/workflows/push.yml renamed to .github/workflows/checks.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,35 @@ jobs:
8383
run: poetry install
8484
- name: Check security
8585
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 }}

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Generate documentation
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68
workflow_dispatch:
79

.github/workflows/pr.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)