Run tests on .NET Core · pythonnet/pythonnet@0d7e43a · GitHub
Skip to content

Commit 0d7e43a

Browse files
committed
Run tests on .NET Core
1 parent f01a78c commit 0d7e43a

45 files changed

Lines changed: 120 additions & 68 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 11 additions & 3 deletions

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[build-system]
22
requires = ["setuptools>=42", "wheel", "pycparser"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.pytest.ini_options]
6+
xfail_strict = true
7+
testpaths = [
8+
"tests",
9+
]

setup.cfg

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/testing/Python.Test.csproj

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netstandard2.0</TargetFrameworks>
3+
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
44
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5+
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
56
</PropertyGroup>
67

78
<ItemGroup>
89
<ProjectReference Include="..\runtime\Python.Runtime.csproj" />
910
</ItemGroup>
10-
11-
<Target Name="AfterBuild">
12-
<Copy SourceFiles="$(TargetAssembly)" DestinationFolder="$(MSBuildThisFileDirectory)..\tests\fixtures" />
13-
</Target>
1411
</Project>

src/tests/conftest.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/tests/fixtures/netstandard2.0/.gitkeep

Whitespace-only changes.
File renamed without changes.

tests/conftest.py

Lines changed: 101 additions & 0 deletions

0 commit comments

Comments
 (0)