Skip to content

Commit

Permalink
New script for testing on a specific python.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreafrancia committed May 25, 2024
1 parent 3b3e871 commit 6c223a5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/test-on
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
SCRIPT_DIR="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

set -euo pipefail

export PYENV_VERSION="${1?}"

python --version
python -m venv ".venv-$PYENV_VERSION"
source ".venv-$PYENV_VERSION/bin/activate"
"$SCRIPT_DIR/lib/install-python-requirements"

pytest

0 comments on commit 6c223a5

Please sign in to comment.