Skip to content

Commit c259e62

Browse files
committed
tests: Split out repo_root test project
1 parent 6f1bfc5 commit c259e62

File tree

6 files changed

+639
-3
lines changed

6 files changed

+639
-3
lines changed

.github/test_projects/repo_root/README.md

Whitespace-only changes.

.github/test_projects/repo_root/poetry.lock

Lines changed: 597 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[project]
2+
name = "test-project"
3+
version = "0.1.0"
4+
description = ""
5+
authors = [
6+
{name = "Joel Dixon",email = "[email protected]"}
7+
]
8+
readme = "README.md"
9+
requires-python = ">=3.9,<4.0"
10+
dynamic = ["dependencies"]
11+
12+
[tool.poetry]
13+
packages = [{include = "test_project", from = "src"}]
14+
15+
[tool.poetry.group.lint.dependencies]
16+
ni-python-styleguide = ">=0.4.1"
17+
mypy = ">=1.0"
18+
pyright = { version = ">=1.1.400", extras = ["nodejs"] }
19+
20+
[tool.ni-python-styleguide]
21+
extend_exclude = "update-project-version"
22+
23+
[tool.mypy]
24+
mypy_path = "."
25+
files = "."
26+
namespace_packages = true
27+
strict = true
28+
explicit_package_bases = true
29+
exclude = "update-project-version"
30+
31+
[tool.pyright]
32+
include = ["src/", "tests/"]
33+
exclude = ["update-project-version"]
34+
35+
[build-system]
36+
requires = ["poetry-core>=2.0.0,<3.0.0"]
37+
build-backend = "poetry.core.masonry.api"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Docstring required."""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Module docstring."""

.github/workflows/test_actions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ jobs:
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
236+
test_analyze_project_repo_root:
237+
name: Test analyze-project in repo root
238238
runs-on: ${{ matrix.os }}
239239
strategy:
240240
matrix:
@@ -250,7 +250,7 @@ jobs:
250250
- name: Set up Poetry
251251
uses: ./setup-poetry
252252
- name: Copy Python project to root
253-
run: cp -av "${{ github.workspace }}/.github/test_projects/minimal"/* "${{ github.workspace }}"
253+
run: cp -av "${{ github.workspace }}/.github/test_projects/repo_root"/* "${{ github.workspace }}"
254254
shell: bash
255255
- name: Analyze Python project
256256
uses: ./analyze-project

0 commit comments

Comments
 (0)