File: python3-pyrle-r

package info (click to toggle)
pyrle 0.0.42-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,720 kB
  • sloc: python: 1,141; makefile: 12; sh: 7
file content (17 lines) | stat: -rwxr-xr-x 476 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

# Save source directory
SRCDIR="$(pwd)"

cd "$AUTOPKGTEST_TMP"

# Copy tests to temp directory to avoid importing from source tree
cp -r "$SRCDIR/tests" "$AUTOPKGTEST_TMP/"

# Test all supported Python versions
for py in $(py3versions -s); do
    # Run all tests from temp directory (ensures pyrle is imported from installed package)
    # Use -n auto to parallelize across all available CPU cores using pytest-xdist
    $py -m pytest -v -n auto tests/
done