Skip to content

Commit 6a24c7b

Browse files
committed
Update CICD for forgejo and github
1 parent eab6911 commit 6a24c7b

6 files changed

Lines changed: 262 additions & 64 deletions

File tree

.forgejo/workflows/cf_docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
fetch-depth: 1
1616

1717
- name: Install uv and set Python
18-
uses: astral-sh/setup-uv@v8.0.0
18+
uses: astral-sh/setup-uv@v8.1.0
1919
with:
2020
python-version: "3.12"
2121
enable-cache: true
22-
version: "0.8.22"
2322

2423
- name: Install Requirements
2524
run: uv sync --all-groups

.forgejo/workflows/coverage_and_lint.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fetch-depth: 1
2222

2323
- name: Install uv and set Python
24-
uses: astral-sh/setup-uv@v8.0.0
24+
uses: astral-sh/setup-uv@v8.1.0
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
enable-cache: true
@@ -47,11 +47,10 @@ jobs:
4747
fetch-depth: 1
4848

4949
- name: Install uv and set Python
50-
uses: astral-sh/setup-uv@v8.0.0
50+
uses: astral-sh/setup-uv@v8.1.0
5151
with:
5252
python-version: "3.12"
5353
enable-cache: true
54-
version: "0.8.22"
5554

5655
- name: Build sdist
5756
run: uv build --sdist
@@ -77,17 +76,17 @@ jobs:
7776
fetch-depth: 1
7877

7978
- name: Install uv and set Python
80-
uses: astral-sh/setup-uv@v8.0.0
79+
uses: astral-sh/setup-uv@v8.1.0
8180
with:
8281
python-version: ${{ matrix.python-version }}
8382
enable-cache: true
84-
version: "0.8.22"
83+
activate-environment: true
8584

8685
- name: Install project and dev dependencies
87-
run: uv sync --group dev
86+
run: uv sync --frozen
8887

8988
- name: Run Pyright
90-
run: uv run pyright
89+
run: uv run --with pyright==1.1.408 pyright
9190

9291
- name: Lint with Ruff
9392
run: uv run ruff check .

.github/workflows/cf_docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
fetch-depth: 1
1616

1717
- name: Install uv and set Python
18-
uses: astral-sh/setup-uv@v8.0.0
18+
uses: astral-sh/setup-uv@v8.1.0
1919
with:
2020
python-version: "3.12"
2121
enable-cache: true
22-
version: "0.8.22"
2322

2423
- name: Install Requirements
2524
run: uv sync --all-groups

.github/workflows/coverage_and_lint.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fetch-depth: 1
2222

2323
- name: Install uv and set Python
24-
uses: astral-sh/setup-uv@v8.0.0
24+
uses: astral-sh/setup-uv@v8.1.0
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
enable-cache: true
@@ -47,7 +47,7 @@ jobs:
4747
fetch-depth: 1
4848

4949
- name: Install uv and set Python
50-
uses: astral-sh/setup-uv@v8.0.0
50+
uses: astral-sh/setup-uv@v8.1.0
5151
with:
5252
python-version: "3.12"
5353
enable-cache: true
@@ -77,20 +77,27 @@ jobs:
7777
fetch-depth: 1
7878

7979
- name: Install uv and set Python
80-
uses: astral-sh/setup-uv@v8.0.0
80+
uses: astral-sh/setup-uv@v8.1.0
8181
with:
8282
python-version: ${{ matrix.python-version }}
8383
enable-cache: true
84-
version: "0.8.22"
84+
activate-environment: true
8585

8686
- name: Install project and dev dependencies
87-
run: uv sync --group dev
87+
run: uv sync --frozen
8888

8989
- name: Run Pyright
90-
run: uv run pyright
90+
uses: jakebailey/pyright-action@v3
91+
with:
92+
version: "1.1.408"
93+
warnings: false
9194

9295
- name: Lint with Ruff
93-
run: uv run ruff check .
96+
uses: astral-sh/ruff-action@v3
97+
with:
98+
args: check .
9499

95100
- name: Check formatting with Ruff
96-
run: uv run ruff format --check .
101+
uses: astral-sh/ruff-action@v3
102+
with:
103+
args: format --check .

pyproject.toml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,34 @@ typeCheckingMode = "strict"
111111
reportImportCycles = false
112112
reportPrivateUsage = false
113113
pythonVersion = "3.12"
114+
venvPath = "."
115+
venv = ".venv"
114116

115117
[dependency-groups]
116118
dev = [
119+
{ include-group = "lint" },
120+
{ include-group = "docs-dev" },
121+
{ include-group = "compat" },
122+
]
123+
124+
lint = [
117125
"ruff>=0.15.14",
118-
"pyright>=1.1.408",
126+
]
127+
128+
compat = [
119129
"discord-py>=2.7.1",
120130
"nextcord>=3.2.0",
121131
"disnake>=2.12.0",
132+
]
133+
134+
speed = [
135+
"orjson",
136+
]
137+
138+
docs-dev = [
122139
"sphinx-autobuild>=2025.8.25",
123140
]
124-
speed = ["orjson"]
141+
125142
docs = [
126143
"shibuya>=2026.5.19",
127144
"sphinx",

0 commit comments

Comments
 (0)