Skip to content

Commit 6d8e94c

Browse files
committed
ughhhhh
1 parent 8b855b9 commit 6d8e94c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ jobs:
3737
pdm install
3838
- name: Activate virtualenv
3939
run: |
40+
source .venv/bin/activate
4041
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
4142
# https://stackoverflow.com/questions/74668349/how-to-activate-a-virtualenv-in-a-github-action
42-
source .venv/bin/activate
4343
echo "PATH=$PATH" >> "$GITHUB_ENV"
4444
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> "$GITHUB_ENV"
45+
echo "unset PYTHONHOME" >> "$GITHUB_ENV"
4546
- name: Generate coverage report
4647
run: |
4748
coverage run --source=. -m runtests

.github/workflows/python-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ jobs:
4444
pdm install
4545
- name: Activate virtualenv
4646
run: |
47+
source .venv/bin/activate
4748
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
4849
# https://stackoverflow.com/questions/74668349/how-to-activate-a-virtualenv-in-a-github-action
49-
source .venv/bin/activate
5050
echo "PATH=$PATH" >> "$GITHUB_ENV"
5151
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> "$GITHUB_ENV"
52+
echo "unset PYTHONHOME" >> "$GITHUB_ENV"
5253
- name: Test with unpythonic.test.fixtures
5354
run: |
5455
python runtests.py

0 commit comments

Comments
 (0)