Skip to content

Commit

Permalink
Add missing versions to on push check
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Mar 19, 2023
1 parent 227bf24 commit dd797c0
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,31 @@ 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: "3.11"
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: "3.11"
python-version: ${{ matrix.version }}
cache: "poetry"
- name: Set up Node
uses: actions/setup-node@v3
Expand All @@ -32,6 +44,9 @@ jobs:
- 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
Expand All @@ -40,8 +55,12 @@ jobs:
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

0 comments on commit dd797c0

Please sign in to comment.