Skip to content

chore(serverless): exclude GetServiceInfo from Serverless Containers v1 #2268

chore(serverless): exclude GetServiceInfo from Serverless Containers v1

chore(serverless): exclude GetServiceInfo from Serverless Containers v1 #2268

Workflow file for this run

name: Check type hinting
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
merge_group:
jobs:
mypy:
runs-on: ubuntu-latest
strategy:
matrix:
lib:
- scaleway-core
- scaleway
- scaleway-async
python-version: [ '3.10' ,'3.11', '3.12', '3.13' ]
defaults:
run:
working-directory: ${{ matrix.lib }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies and library
run: poetry install
- name: Check typing
run: poetry run mypy --install-types --non-interactive --strict --no-warn-unused-ignores "$(echo "${{ matrix.lib }}" | tr "-" "_")"
ty:
runs-on: ubuntu-latest
strategy:
matrix:
lib:
- scaleway-core
- scaleway
- scaleway-async
python-version: [ '3.10' ,'3.11', '3.12', '3.13' ]
defaults:
run:
working-directory: ${{ matrix.lib }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies and library
run: poetry install
- name: Check typing
run: poetry run ty check
pyrefly:
runs-on: ubuntu-latest
strategy:
matrix:
lib:
- scaleway-core
- scaleway
- scaleway-async
python-version: [ '3.10' ,'3.11', '3.12', '3.13' ]
defaults:
run:
working-directory: ${{ matrix.lib }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies and library
run: poetry install
- name: Check typing with pyrefly
run: poetry run pyrefly check