Skip to content

Commit

Permalink
Improve python with pipenv to fix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Sep 14, 2023
1 parent 7430f0e commit a036f86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test-smokes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ jobs:
- os: windows-latest
time-test: true
runs-on: ${{ matrix.os }}
env:
QUARTO_TESTS_FORCE_NO_PIPENV: true
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -131,7 +129,7 @@ jobs:
working-directory: tests
run: |
python -m pip install pipenv
pipenv install --system
pipenv install
- uses: ./.github/workflows/actions/quarto-dev

Expand Down
2 changes: 1 addition & 1 deletion tests/run-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ $DENO_ARGS += -split $QUARTO_IMPORT_ARGMAP
$DENO_ARGS += $TESTS_TO_RUN

# Activate python virtualenv
# set QUARTO_TESTS_FORCE_NO_PIPENV env var to not activate the virtalenv manage by pipenv for the project
# set QUARTO_TESTS_FORCE_NO_PIPENV env var to not activate the virtualenv managed by pipenv for the project
If ($null -eq $Env:QUARTO_TESTS_FORCE_NO_PIPENV) {
# Save possible activated virtualenv for later restauration
$OLD_VIRTUAL_ENV=$VIRTUAL_ENV
Expand Down
2 changes: 1 addition & 1 deletion tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ then
fi

# Activating python virtualenv
# set QUARTO_TESTS_FORCE_NO_PIPENV env var to not activate the virtalenv manage by pipenv for the project
# set QUARTO_TESTS_FORCE_NO_PIPENV env var to not activate the virtualenv managed by pipenv for the project
if [[ -z $QUARTO_TESTS_FORCE_NO_PIPENV ]]
then
# Save possible activated virtualenv for later restauration
Expand Down

0 comments on commit a036f86

Please sign in to comment.