Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3
python-version: 3.13 # PythonNet isn't compatible with 3.14 yet (https://github.com/pythonnet/pythonnet/issues/2610)
- name: Download
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3
python-version: 3.13 # PythonNet isn't compatible with 3.14 yet (https://github.com/pythonnet/pythonnet/issues/2610)
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build
Expand Down
6 changes: 3 additions & 3 deletions test/Apache.Arrow.Tests/CDataInterfacePythonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ public CDataSchemaPythonTest(PythonNet pythonNet)
{
if (!pythonNet.Initialized)
{
Skip.If(pythonNet.VersionMismatch, "VM has incompatible version of Python installed; skipping C Data Interface tests.");
var errorReason = pythonNet.VersionMismatch ? "Python version is incompatible with PythonNet" : "PYTHONNET_PYDLL not set";

bool inCIJob = Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true";
bool inVerificationJob = Environment.GetEnvironmentVariable("TEST_CSHARP") == "1";

// Skip these tests if this is not in CI or is a verification job and PythonNet couldn't be initialized
Skip.If(inVerificationJob || !inCIJob, "PYTHONNET_PYDLL not set; skipping C Data Interface tests.");
Skip.If(inVerificationJob || !inCIJob, $"{errorReason}; skipping C Data Interface tests.");

// Otherwise throw
throw new Exception("PYTHONNET_PYDLL not set; cannot run C Data Interface tests.");
throw new Exception($"{errorReason}; cannot run C Data Interface tests.");
}
}

Expand Down