From 4c64626b0d23f5206a0221d17fe00ae19e3f1886 Mon Sep 17 00:00:00 2001 From: lmasson Date: Tue, 23 Jul 2024 15:53:40 +0200 Subject: [PATCH] feat(ci): tests activation --- .github/workflows/checks.yml | 62 ++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 81e276252..c493e227b 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -88,34 +88,34 @@ jobs: - name: Check linting run: poetry run ruff check . --ignore E721 --ignore F541 - # tests: - # runs-on: ubuntu-latest - # strategy: - # matrix: - # lib: - # - scaleway-core - # - scaleway - # - scaleway-async - # defaults: - # run: - # working-directory: ${{ matrix.lib }} - # steps: - # - uses: actions/checkout@v4 - # - name: Set up Python - # uses: actions/setup-python@v5 - # with: - # python-version: 3.8 - # - name: Install poetry - # run: | - # pip install poetry - # poetry --version - # - name: Install dependencies and library - # run: poetry install - # - name: Run tests - # run: poetry run python -m unittest discover -s tests -v - # env: - # SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} - # SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} - # SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }} - # SCW_DEFAULT_REGION: ${{ secrets.SCW_DEFAULT_REGION }} - # SCW_DEFAULT_ZONE: ${{ secrets.SCW_DEFAULT_ZONE }} + tests: + runs-on: ubuntu-latest + strategy: + matrix: + lib: + - scaleway-core + - scaleway + - scaleway-async + defaults: + run: + working-directory: ${{ matrix.lib }} + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.8 + - name: Install poetry + run: | + pip install poetry + poetry --version + - name: Install dependencies and library + run: poetry install + - name: Run tests + run: poetry run python -m unittest discover -s tests -v + env: + SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} + SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} + SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }} + SCW_DEFAULT_REGION: ${{ secrets.SCW_DEFAULT_REGION }} + SCW_DEFAULT_ZONE: ${{ secrets.SCW_DEFAULT_ZONE }}