Skip to content

Commit 8bd304b

Browse files
committed
argh again
1 parent 882a25f commit 8bd304b

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
@@ -29,11 +29,12 @@ jobs:
2929
pip install flake8
3030
pip install coverage
3131
pip install pdm
32-
- name: Create virtualenv
32+
- name: Install Python for pdm venv
3333
run: |
3434
pdm python install ${{ matrix.python-version }}
3535
- name: Activate virtualenv
3636
run: |
37+
pdm use --venv in-project
3738
source .venv/bin/activate
3839
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
3940
# https://stackoverflow.com/questions/74668349/how-to-activate-a-virtualenv-in-a-github-action

.github/workflows/python-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ jobs:
3636
flake8 . --config=flake8rc --count --select=E9,F63,F7,F82 --show-source --statistics
3737
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3838
flake8 . --config=flake8rc --count --exit-zero --max-complexity=100 --max-line-length=127 --statistics
39-
- name: Create virtualenv
39+
- name: Install Python for pdm venv
4040
run: |
4141
pdm python install ${{ matrix.python-version }}
4242
- name: Activate virtualenv
4343
run: |
44+
pdm use --venv in-project
4445
source .venv/bin/activate
4546
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
4647
# https://stackoverflow.com/questions/74668349/how-to-activate-a-virtualenv-in-a-github-action

0 commit comments

Comments
 (0)