Skip to content

Commit 2499b2d

Browse files
committed
raaah
1 parent 8bd304b commit 2499b2d

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ jobs:
2929
pip install flake8
3030
pip install coverage
3131
pip install pdm
32-
- name: Install Python for pdm venv
32+
- name: Create virtualenv
3333
run: |
3434
pdm python install ${{ matrix.python-version }}
35+
# "When you run pdm install the first time on a new PDM-managed project, whose Python interpreter is not decided yet,
36+
# PDM will create a virtualenv in <project_root>/.venv, and install dependencies into it."
37+
# --https://pdm-project.org/en/latest/usage/venv/
38+
pdm install
3539
- name: Activate virtualenv
3640
run: |
3741
pdm use --venv in-project
@@ -40,9 +44,6 @@ jobs:
4044
# https://stackoverflow.com/questions/74668349/how-to-activate-a-virtualenv-in-a-github-action
4145
echo "PATH=$PATH" >> "$GITHUB_ENV"
4246
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> "$GITHUB_ENV"
43-
- name: Install dependencies into virtualenv
44-
run: |
45-
pdm install
4647
- name: Generate coverage report
4748
run: |
4849
coverage run --source=. -m runtests

.github/workflows/python-package.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@ 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: Install Python for pdm venv
39+
- name: Create virtualenv
4040
run: |
4141
pdm python install ${{ matrix.python-version }}
42+
# "When you run pdm install the first time on a new PDM-managed project, whose Python interpreter is not decided yet,
43+
# PDM will create a virtualenv in <project_root>/.venv, and install dependencies into it."
44+
# --https://pdm-project.org/en/latest/usage/venv/
45+
pdm install
4246
- name: Activate virtualenv
4347
run: |
4448
pdm use --venv in-project
@@ -47,9 +51,6 @@ jobs:
4751
# https://stackoverflow.com/questions/74668349/how-to-activate-a-virtualenv-in-a-github-action
4852
echo "PATH=$PATH" >> "$GITHUB_ENV"
4953
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> "$GITHUB_ENV"
50-
- name: Install dependencies into virtualenv
51-
run: |
52-
pdm install
5354
- name: Test with unpythonic.test.fixtures
5455
run: |
5556
python runtests.py

0 commit comments

Comments
 (0)