Skip to content

Commit d2ca0b7

Browse files
committed
resolve gh actions
1 parent 630d61f commit d2ca0b7

File tree

3 files changed

+30
-49
lines changed

3 files changed

+30
-49
lines changed

.github/workflows/build_and_push.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ on:
1515
branches:
1616
- main
1717
paths:
18-
- '**.html'
19-
- '**.css'
20-
- '**.js'
21-
- '**.py'
22-
- '**.toml'
23-
- '**.svg'
18+
- "**.html"
19+
- "**.css"
20+
- "**.js"
21+
- "**.py"
22+
- "**.toml"
23+
- "**.svg"
24+
- "**.yaml"
2425

2526
concurrency:
2627
cancel-in-progress: true
@@ -69,7 +70,7 @@ jobs:
6970
run: |
7071
echo "IMAGE_NAME_LC=${IMAGE_NAME,,}" >> "${GITHUB_OUTPUT}"
7172
env:
72-
IMAGE_NAME: '${{ env.IMAGE_NAME }}'
73+
IMAGE_NAME: "${{ env.IMAGE_NAME }}"
7374

7475
- name: Get short SHA
7576
id: slug

.github/workflows/coverage_and_lint.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,39 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.11", "3.x"]
18+
python-version: ["3.12"]
1919

2020
name: "Type Coverage and Linting @ ${{ matrix.python-version }}"
2121
steps:
2222
- name: "Checkout Repository"
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
26+
submodules: "true"
2627

27-
- name: "Setup Python @ ${{ matrix.python-version }}"
28-
id: setup-python
29-
uses: actions/setup-python@v4
28+
- name: Setup uv @ ${{ matrix.python-version }}
29+
uses: astral-sh/setup-uv@v6
3030
with:
31-
python-version: "${{ matrix.python-version }}"
32-
cache: "pip"
31+
activate-environment: true
32+
enable-cache: true
33+
python-version: ${{ matrix.python-version }}
3334

34-
- name: "Install Python deps @ ${{ matrix.python-version }}"
35-
id: install-deps
35+
- name: Install deps @ ${{ matrix.python-version }}
3636
run: |
37-
pip install -Ur requirements.txt
37+
uv sync --all-extras --all-groups
38+
3839
- name: "Run Pyright @ ${{ matrix.python-version }}"
39-
uses: jakebailey/pyright-action@v1
40+
uses: jakebailey/pyright-action@v2
4041
with:
41-
no-comments: ${{ matrix.python-version != '3.x' }}
4242
warnings: false
43+
annotate: "${{ matrix.python-version != '3.x' }}"
44+
45+
- name: Lint check
46+
uses: astral-sh/ruff-action@v3
47+
with:
48+
args: check .
4349

44-
- name: Lint with Ruff
45-
if: ${{ always() && steps.install-deps.outcome == 'success' }}
46-
uses: chartboost/ruff-action@v1
50+
- name: Formatting check
51+
uses: astral-sh/ruff-action@v3
52+
with:
53+
args: format --check

.github/workflows/deploy.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)