pyo3/ci/actions/test.ps1
2019-11-17 16:34:55 +09:00

20 lines
391 B
PowerShell

Set-PSDebug -trace 2
function Invoke-Call
{
param ([scriptblock]$ScriptBlock)
& @ScriptBlock
if ($LastExitCode -ne 0)
{
exit $LastExitCode
}
}
Invoke-Call { cargo test --verbose --features="num-bigint num-complex" }
foreach ($example in Get-ChildItem -dir "examples")
{
Set-Location $example
Invoke-Call { tox -c "tox.ini" -e py }
}