55 paths :
66 - " discord/**"
77 - " examples/**"
8- - " requirements/** "
8+ - " uv.lock "
99 - " tests/**"
1010 - " .github/actions/**"
1111 - " .github/workflows/lib-checks.yml"
1212 - " LICENSE"
13- - " MANIFEST.in"
1413 - " README.rst"
1514 - " *.toml"
1615 - " *.py"
@@ -54,12 +53,11 @@ jobs:
5453 const matches = (file) => (
5554 file.startsWith('discord/') ||
5655 file.startsWith('examples/') ||
57- file.startsWith('requirements/') ||
56+ file === 'uv.lock' ||
5857 file.startsWith('tests/') ||
5958 file.startsWith('.github/actions/') ||
6059 file === '.github/workflows/lib-checks.yml' ||
6160 file === 'LICENSE' ||
62- file === 'MANIFEST.in' ||
6361 file === 'README.rst' ||
6462 (!file.includes('/') && file.endsWith('.toml')) ||
6563 (!file.includes('/') && file.endsWith('.py')) ||
@@ -82,12 +80,11 @@ jobs:
8280 if : ${{ needs.changes.outputs.lib == 'true' && github.event_name != 'schedule' }}
8381 runs-on : ubuntu-latest
8482 steps :
85- - name : " Checkout Repository"
86- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
87- - name : " Setup Python dev environment"
88- uses : ./.github/actions/setup-python-dev
83+ - name : " Setup repository"
84+ uses : ./.github/actions/setup-repo
8985 with :
9086 python-version : " 3.14"
87+ groups : " dev"
9188 - name : " Run codespell"
9289 run :
9390 codespell --ignore-words-list="groupt,nd,ot,ro,falsy,BU" \
@@ -97,25 +94,23 @@ jobs:
9794 if : ${{ needs.changes.outputs.lib == 'true' && github.event_name != 'schedule' }}
9895 runs-on : ubuntu-latest
9996 steps :
100- - name : " Checkout Repository"
101- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
102- - name : " Setup Python dev environment"
103- uses : ./.github/actions/setup-python-dev
97+ - name : " Setup repository"
98+ uses : ./.github/actions/setup-repo
10499 with :
105100 python-version : " 3.14"
101+ groups : " dev"
106102 - name : " Run bandit"
107103 run : bandit --recursive --skip B101,B104,B105,B110,B307,B311,B404,B603,B607 .
108104 pylint :
109105 needs : [ changes ]
110106 if : ${{ needs.changes.outputs.lib == 'true' && github.event_name != 'schedule' }}
111107 runs-on : ubuntu-latest
112108 steps :
113- - name : " Checkout Repository"
114- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
115- - name : " Setup Python dev environment"
116- uses : ./.github/actions/setup-python-dev
109+ - name : " Setup repository"
110+ uses : ./.github/actions/setup-repo
117111 with :
118112 python-version : " 3.14"
113+ groups : " dev"
119114 - name : " Setup cache"
120115 id : cache-pylint
121116 uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
@@ -131,12 +126,11 @@ jobs:
131126 if : ${{ needs.changes.outputs.lib == 'true' && github.event_name != 'schedule' }}
132127 runs-on : ubuntu-latest
133128 steps :
134- - name : " Checkout Repository"
135- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
136- - name : " Setup Python dev environment"
137- uses : ./.github/actions/setup-python-dev
129+ - name : " Setup repository"
130+ uses : ./.github/actions/setup-repo
138131 with :
139132 python-version : " 3.14"
133+ groups : " dev"
140134 - name : " Setup cache"
141135 id : cache-mypy
142136 uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
@@ -155,12 +149,11 @@ jobs:
155149 if : ${{ needs.changes.outputs.lib == 'true' }}
156150 runs-on : ubuntu-latest
157151 steps :
158- - name : " Checkout Repository"
159- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
160- - name : " Setup Python dev environment"
161- uses : ./.github/actions/setup-python-dev
152+ - name : " Setup repository"
153+ uses : ./.github/actions/setup-repo
162154 with :
163155 python-version : " 3.14"
156+ groups : " dev"
164157 - name : " Lint with flake8"
165158 run : |
166159 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -174,13 +167,11 @@ jobs:
174167 os : [ ubuntu-latest, windows-latest, macos-latest ]
175168 python-version : [ "3.10", "3.14" ]
176169 steps :
177- - name : " Checkout Repository"
178- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
179- - name : " Setup Python dev environment"
180- uses : ./.github/actions/setup-python-dev
170+ - name : " Setup repository"
171+ uses : ./.github/actions/setup-repo
181172 with :
182173 python-version : ${{ matrix.python-version }}
183- install-voice : " true "
174+ groups : " dev "
184175
185176 - name : " Run tests"
186177 run : tox
@@ -193,13 +184,11 @@ jobs:
193184 os : [ ubuntu-latest, windows-latest, macos-latest ]
194185 python-version : [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
195186 steps :
196- - name : " Checkout Repository"
197- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
198- - name : " Setup Python dev environment"
199- uses : ./.github/actions/setup-python-dev
187+ - name : " Setup repository"
188+ uses : ./.github/actions/setup-repo
200189 with :
201190 python-version : ${{ matrix.python-version }}
202- install-voice : " true "
191+ groups : " dev "
203192
204193 - name : " Run tests"
205194 run : tox
0 commit comments