Skip to content

Commit

Permalink
feat(ci): tests activation
Browse files Browse the repository at this point in the history
  • Loading branch information
Laure-di committed Jul 23, 2024
1 parent e113eb0 commit 4c64626
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 4c64626

Please sign in to comment.