Skip to content

Commit fa2fbe4

Browse files
committed
CI: trying a third way to activate the PDM venv
1 parent e9da23b commit fa2fbe4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/coverage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ jobs:
3030
pip install pdm
3131
pdm python install ${{ matrix.python-version }}
3232
pdm install
33+
working-directory: /home/runner/work/unpythonic/
3334
- name: Generate coverage report
3435
run: |
3536
pip install coverage
36-
. .venv/bin/activate
37+
source .venv/bin/activate
3738
coverage run --source=. -m runtests
3839
coverage xml
40+
working-directory: /home/runner/work/unpythonic/
3941
- name: Upload coverage to Codecov
4042
uses: codecov/codecov-action@v1
4143
with:

.github/workflows/python-package.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ jobs:
3232
pip install pdm
3333
pdm python install ${{ matrix.python-version }}
3434
pdm install
35+
working-directory: /home/runner/work/unpythonic/
3536
- name: Lint with flake8
3637
run: |
3738
# stop the build if there are Python syntax errors or undefined names
3839
flake8 . --config=flake8rc --count --select=E9,F63,F7,F82 --show-source --statistics
3940
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4041
flake8 . --config=flake8rc --count --exit-zero --max-complexity=100 --max-line-length=127 --statistics
42+
working-directory: /home/runner/work/unpythonic/
4143
- name: Test with unpythonic.test.fixtures
4244
run: |
43-
. .venv/bin/activate
45+
source .venv/bin/activate
4446
python runtests.py
47+
working-directory: /home/runner/work/unpythonic/

0 commit comments

Comments
 (0)