Skip to content

Add publish badges

Add publish badges #37

Workflow file for this run

name: Code style
concurrency:
group: on_push
cancel-in-progress: true
on:
push: {}
workflow_dispatch: {}
jobs:
unit-tests:
name: Code style
runs-on: ubuntu-latest
strategy:
matrix:
version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
include:
- version: "3.11"
check-formatting: "true"
check-consistency: "true"
steps:
- uses: actions/checkout@v3
- name: Set up Python for Poetry
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install poetry
run: |
python -m pip install poetry pip
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
cache: "poetry"
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: |
poetry install -n
- name: Install missing dependencies
run: |
poetry run pip install flake8 mypy
- name: Install Node.js dependencies
run: |
npm install -g pyright
- name: Lint
run: |
poetry run flake8 awscrt-stubs
poetry run npx pyright awscrt-stubs
poetry run mypy awscrt-stubs
- name: Check formatting
if: ${{ matrix.check-formatting }}
run: |
poetry run black --check awscrt-stubs
poetry run isort -c awscrt-stubs
- name: Stubs consistency check
if: ${{ matrix.check-consistency }}
run: |
poetry run istub -d