Skip to content

Commit 51e27f7

Browse files
committed
tests: Test analyze-project in root of repo
1 parent 36f9be5 commit 51e27f7

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/test_actions.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,32 @@ jobs:
228228
python-version: ${{ matrix.python-version }}
229229
- name: Set up Poetry
230230
uses: ./setup-poetry
231-
- name: Analyze Python Project
231+
- name: Analyze Python project
232232
uses: ./analyze-project
233233
with:
234234
project-directory: ${{ github.workspace }}/.github/test_projects/minimal
235235

236+
test_analyze_project_in_root:
237+
name: Test analyze-project in root of repo
238+
runs-on: ${{ matrix.os }}
239+
strategy:
240+
matrix:
241+
os: [windows-latest, ubuntu-latest, macos-latest]
242+
python-version: [3.9, '3.10', 3.11, 3.12, 3.13, pypy3.10, pypy3.11]
243+
steps:
244+
- name: Check out repo
245+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
246+
- name: Set up Python
247+
uses: ./setup-python
248+
with:
249+
python-version: ${{ matrix.python-version }}
250+
- name: Set up Poetry
251+
uses: ./setup-poetry
252+
- name: Copy Python project to root
253+
run: cp -av ${{ github.workspace }}/.github/test_projects/minimal ${{ github.workspace }}
254+
- name: Analyze Python project
255+
uses: ./analyze-project
256+
236257
# This job is intended to combine the test results so we don't have to list
237258
# each matrix combination in the required status check settings. There are a
238259
# lot of corner cases that make this harder than it should be; see See
@@ -248,6 +269,7 @@ jobs:
248269
test_check_project_version,
249270
test_update_project_version,
250271
test_analyze_project,
272+
test_analyze_project_in_root,
251273
]
252274
if: ${{ !cancelled() }}
253275
steps:

0 commit comments

Comments
 (0)