Skip to content

Commit

Permalink
fix: restore install.sh and see if github pipeline pass
Browse files Browse the repository at this point in the history
  • Loading branch information
manawasp committed Mar 13, 2024
1 parent 0a84305 commit 5b0364d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
requirements-*.txt
requirements-docs.txt
requirements-tests.txt
pyproject.toml
- name: Install dependencies
run: pip install -r requirements.txt
run: scripts/install.sh

- name: Run linting checks
run: scripts/lint.sh
Expand Down
17 changes: 17 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh -e

# Use the Python executable provided from the `-p` option, or a default.
[ "$1" = "-p" ] && PYTHON=$2 || PYTHON="python3"

VENV="venv"

set -x

if [ -z "$GITHUB_ACTIONS" ]; then
"$PYTHON" -m venv "$VENV"
PIP="$VENV/bin/pip"
else
PIP="pip"
fi

"$PIP" install -r requirements.txt

0 comments on commit 5b0364d

Please sign in to comment.