Skip to content

Commit 6c2de3f

Browse files
committed
chore: activate tests in workflow
1 parent e8541fd commit 6c2de3f

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

.github/workflows/checks.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -88,34 +88,34 @@ jobs:
8888
- name: Check linting
8989
run: poetry run ruff check . --ignore E721 --ignore F541
9090

91-
# tests:
92-
# runs-on: ubuntu-latest
93-
# strategy:
94-
# matrix:
95-
# lib:
96-
# - scaleway-core
97-
# - scaleway
98-
# - scaleway-async
99-
# defaults:
100-
# run:
101-
# working-directory: ${{ matrix.lib }}
102-
# steps:
103-
# - uses: actions/checkout@v4
104-
# - name: Set up Python
105-
# uses: actions/setup-python@v5
106-
# with:
107-
# python-version: "3.10"
108-
# - name: Install poetry
109-
# run: |
110-
# pip install poetry
111-
# poetry --version
112-
# - name: Install dependencies and library
113-
# run: poetry install
114-
# - name: Run tests
115-
# run: poetry run python -m unittest discover -s tests -v
116-
# env:
117-
# SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
118-
# SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
119-
# SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
120-
# SCW_DEFAULT_REGION: ${{ secrets.SCW_DEFAULT_REGION }}
121-
# SCW_DEFAULT_ZONE: ${{ secrets.SCW_DEFAULT_ZONE }}
91+
tests:
92+
runs-on: ubuntu-latest
93+
strategy:
94+
matrix:
95+
lib:
96+
- scaleway-core
97+
- scaleway
98+
- scaleway-async
99+
defaults:
100+
run:
101+
working-directory: ${{ matrix.lib }}
102+
steps:
103+
- uses: actions/checkout@v4
104+
- name: Set up Python
105+
uses: actions/setup-python@v5
106+
with:
107+
python-version: "3.10"
108+
- name: Install poetry
109+
run: |
110+
pip install poetry
111+
poetry --version
112+
- name: Install dependencies and library
113+
run: poetry install
114+
- name: Run tests
115+
run: poetry run python -m unittest discover -s tests -v
116+
env:
117+
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
118+
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
119+
SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
120+
SCW_DEFAULT_REGION: ${{ secrets.SCW_DEFAULT_REGION }}
121+
SCW_DEFAULT_ZONE: ${{ secrets.SCW_DEFAULT_ZONE }}

scaleway-async/tests/test_test_v1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from scaleway_async import Client, WaitForOptions
88
from scaleway_async.test.v1 import EyeColors, Human, HumanStatus, TestV1API
99

10+
1011
@unittest.skip("API test is not deployed")
1112
class TestTestV1(unittest.IsolatedAsyncioTestCase):
1213
async def asyncSetUp(self) -> None:

0 commit comments

Comments
 (0)