Skip to content

Commit 4063db7

Browse files
committed
Add test for analyze-project
1 parent 5b8eb04 commit 4063db7

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test_actions.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,34 @@ jobs:
212212
project-directory: test-project
213213
expected-version: 1.0.2.dev1
214214

215+
test_analyze_project:
216+
name: Test analyze-project
217+
runs-on: ${{ matrix.os }}
218+
strategy:
219+
matrix:
220+
os: [windows-latest, ubuntu-latest, macos-latest]
221+
python-version: [3.9, '3.10', 3.11, 3.12, 3.13, pypy3.10, pypy3.11]
222+
steps:
223+
- name: Check out repo
224+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
225+
- name: Set up Python
226+
uses: ./setup-python
227+
with:
228+
python-version: ${{ matrix.python-version }}
229+
- name: Set up Poetry
230+
uses: ./setup-poetry
231+
- name: Check that the project was created
232+
run: |
233+
if [ ! -f test-project/pyproject.toml ]; then
234+
echo "::error title=Test Failure::The project file does not exist."
235+
exit 1
236+
fi
237+
shell: bash
238+
- name: Analyze Python Project
239+
uses: ./analyze-project
240+
with:
241+
project-directory: test-project
242+
215243
# This job is intended to combine the test results so we don't have to list
216244
# each matrix combination in the required status check settings. There are a
217245
# lot of corner cases that make this harder than it should be; see See

0 commit comments

Comments
 (0)