Skip to content

Commit

Permalink
Add python matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Nov 29, 2023
1 parent d1f01f5 commit 591ec50
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,54 @@ jobs:
code-style:
name: Code style
runs-on: ubuntu-latest
strategy:
matrix:
version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
include:
- version: "3.11"
check-formatting: "true"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- 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
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
- name: Install dependencies
run: |
poetry install -n
- name: Install Node.js dependencies
run: |
npm install -g pyright
- name: Code style
if: ${{ matrix.check-formatting }}
run: |
poetry run black --check istub
poetry run isort -c istub
- name: Lint
run: |
poetry run flake8 istub
poetry run npx pyright istub
- name: Typing
run: |
poetry run mypy istub
poetry run black --check istub
poetry run isort -c istub
poetry run npx pyright
- name: Check istub run
run: |
poetry run istub
4 changes: 2 additions & 2 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: main
- name: Set up Python
Expand All @@ -22,7 +22,7 @@ jobs:
python-version: "3.11"
- name: Get version
id: version
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
result-encoding: string
script: |
Expand Down

0 comments on commit 591ec50

Please sign in to comment.