pyo3/ci/actions/test.ps1

20 lines
391 B
PowerShell
Raw Normal View History

Set-PSDebug -trace 2
function Invoke-Call
{
param ([scriptblock]$ScriptBlock)
& @ScriptBlock
if ($LastExitCode -ne 0)
{
exit $LastExitCode
}
}
2019-09-28 10:05:15 +00:00
Invoke-Call { cargo test --verbose --features="num-bigint num-complex" }
2019-11-17 04:07:36 +00:00
foreach ($example in Get-ChildItem -dir "examples")
{
2019-11-17 04:07:36 +00:00
Set-Location $example
Invoke-Call { tox -c "tox.ini" -e py }
}