File: run-pytest

package info (click to toggle)
python-resolvelib 0.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,436 kB
  • sloc: python: 1,756; javascript: 102; sh: 9; makefile: 3
file content (19 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -e

# we want to run the pytest test suite, but we do not want it running
# from the main working directory (we want it to look for the
# installed package)

mkdir -p xxx
cp -a tests xxx/
cd xxx
# Until python3-commentjson is in the archive:
rm -rf tests/functional/cocoapods

# Test for all supported python3 versions so we find out if there are any
# issues with a new python3 version before it is the default version.
for py3vers in $(py3versions -s); do
    echo "Testing with $py3vers:"
    $py3vers -m pytest -v
done