Skip to content

Commit 882a25f

Browse files
committed
argggghhhh
1 parent 3b64b28 commit 882a25f

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.github/workflows/coverage.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,18 @@ jobs:
3232
- name: Create virtualenv
3333
run: |
3434
pdm python install ${{ matrix.python-version }}
35-
- name: Install dependencies into virtualenv
36-
run: |
37-
pdm install
3835
- name: Activate virtualenv
3936
run: |
4037
source .venv/bin/activate
4138
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
4239
# https://stackoverflow.com/questions/74668349/how-to-activate-a-virtualenv-in-a-github-action
4340
echo "PATH=$PATH" >> "$GITHUB_ENV"
4441
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> "$GITHUB_ENV"
42+
- name: Install dependencies into virtualenv
43+
run: |
44+
pdm install
4545
- name: Generate coverage report
4646
run: |
47-
# coverage report
48-
# https://stackoverflow.com/questions/70137245/how-to-remove-an-environment-variable-on-github-actions
49-
unset PYTHONHOME
5047
coverage run --source=. -m runtests
5148
coverage xml
5249
- name: Upload coverage to Codecov

.github/workflows/python-package.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,16 @@ jobs:
3939
- name: Create virtualenv
4040
run: |
4141
pdm python install ${{ matrix.python-version }}
42-
- name: Install dependencies into virtualenv
43-
run: |
44-
pdm install
4542
- name: Activate virtualenv
4643
run: |
4744
source .venv/bin/activate
4845
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
4946
# https://stackoverflow.com/questions/74668349/how-to-activate-a-virtualenv-in-a-github-action
5047
echo "PATH=$PATH" >> "$GITHUB_ENV"
5148
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> "$GITHUB_ENV"
49+
- name: Install dependencies into virtualenv
50+
run: |
51+
pdm install
5252
- name: Test with unpythonic.test.fixtures
5353
run: |
54-
# run the tests
55-
# https://stackoverflow.com/questions/70137245/how-to-remove-an-environment-variable-on-github-actions
56-
unset PYTHONHOME
5754
python runtests.py

0 commit comments

Comments
 (0)