Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Apr 16, 2024
1 parent bed3053 commit 16e86f1
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aio_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
cache: "poetry"
- name: Set up Node
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aio_sanity_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
cache: "poetry"
- name: Set up Node
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/consistency_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
- name: Install dependencies
run: |
poetry install -n
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
cache: "poetry"
- name: Set up Node
uses: actions/setup-node@v4
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
include:
- version: "3.10"
check-lint: "true"
check-formatting: "true"
check-typing: "true"
- version: "3.11"
check-lint: "true"
check-typing: "true"
- version: "3.12"
check-lint: "true"
check-typing: "true"
steps:
- uses: actions/checkout@v4
- name: Install poetry
Expand All @@ -37,12 +44,24 @@ jobs:
run: |
poetry run flake8 mypy_boto3_builder
- name: Formatting
if: ${{ matrix.check-formatting }}
run: |
poetry run black --check mypy_boto3_builder tests
poetry run isort -c mypy_boto3_builder tests
- run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
- name: Set up Node
if: ${{ matrix.check-typing }}
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Node.js dependencies
if: ${{ matrix.check-typing }}
run: |
npm install -g pyright
- name: Typing
uses: jakebailey/pyright-action@v1
if: ${{ matrix.check-typing }}
run: |
poetry run npx pyright mypy_boto3_builder
- name: Test
run: |
poetry run pytest
2 changes: 1 addition & 1 deletion .github/workflows/on_push_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
cache: "poetry"
- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
- name: Get version
id: version
uses: actions/github-script@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on_release_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
- name: Install project
run: |
poetry install -n
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_aiobotocore_stubs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
- name: Install builder
run: |
rm -rf mypy_boto3_builder
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_boto3_stubs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
- name: Install boto3
run: |
mkdir installtemp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_types_aioboto3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
- name: Install builder
run: |
rm -rf mypy_boto3_builder
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sanity_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: pyproject.toml
cache: "poetry"
- name: Set up Node
uses: actions/setup-node@v4
Expand Down

0 comments on commit 16e86f1

Please sign in to comment.