Skip to content

Commit d3c8e49

Browse files
committed
ci(github): Update ci checks and deploy
Signed-off-by: Helio Chissini de Castro <heliocastro@gmail.com>
1 parent 5499844 commit d3c8e49

2 files changed

Lines changed: 20 additions & 15 deletions

File tree

.github/workflows/build_and_publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
runs-on: ubuntu-24.04
4040

4141
steps:
42-
- uses: actions/checkout@v4
42+
- uses: actions/checkout@v5
4343

4444
- uses: astral-sh/setup-uv@v5
4545
with:

.github/workflows/commit_checks.yaml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
workflow_dispatch:
2222
pull_request:
2323
paths-ignore:
24-
- "**.md"
24+
- '**.md'
2525
push:
2626
branches: [main]
2727

@@ -33,23 +33,28 @@ jobs:
3333
- uses: actions/checkout@v4
3434
- uses: webiny/action-conventional-commits@v1.3.0
3535

36-
mypy:
36+
ty:
3737
needs: commitlint
38-
name: MyPy Python linter
38+
name: Ty Python linter
3939
runs-on: ubuntu-24.04
4040
steps:
41-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@v5
4242
- uses: actions/setup-python@v5
4343
with:
44-
python-version: "3.10"
45-
- name: Install mypy
46-
run: pip install mypy
47-
- name: Run mypy
48-
uses: sasanquaneuf/mypy-github-action@releases/v1.3
44+
python-version: '3.10'
45+
46+
- uses: astral-sh/setup-uv@v5
47+
with:
48+
enable-cache: true
49+
50+
- uses: actions/setup-python@v5
4951
with:
50-
checkName: "mypy" # NOTE: this needs to be the same as the job name
51-
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
python-version-file: 'pyproject.toml'
53+
54+
- name: Run ty
55+
shell: bash
56+
run: |
57+
ty check
5358
5459
ruff:
5560
needs: commitlint
@@ -60,8 +65,8 @@ jobs:
6065
- name: Ruff Check
6166
uses: astral-sh/ruff-action@v3
6267
with:
63-
args: "check --config pyproject.toml"
68+
args: 'check --config pyproject.toml'
6469
- name: Ruff Format
6570
uses: astral-sh/ruff-action@v3
6671
with:
67-
args: "format --check --config pyproject.toml"
72+
args: 'format --check --config pyproject.toml'

0 commit comments

Comments
 (0)