Skip to content

Commit f61abb2

Browse files
committed
attempt to upgrade CI to use pdm
1 parent b47afc4 commit f61abb2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/coverage.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ jobs:
2727
run: |
2828
python -m pip install --upgrade pip
2929
pip install flake8
30-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
pip install pdm
31+
pdm python install ${{ matrix.python-version }}
32+
pdm install
3133
- name: Generate coverage report
3234
run: |
3335
pip install coverage
36+
$(pdm venv activate)
3437
coverage run --source=. -m runtests
3538
coverage xml
3639
- name: Upload coverage to Codecov

.github/workflows/python-package.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
run: |
3030
python -m pip install --upgrade pip
3131
pip install flake8
32-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32+
pip install pdm
33+
pdm python install ${{ matrix.python-version }}
34+
pdm install
3335
- name: Lint with flake8
3436
run: |
3537
# stop the build if there are Python syntax errors or undefined names
@@ -38,4 +40,5 @@ jobs:
3840
flake8 . --config=flake8rc --count --exit-zero --max-complexity=100 --max-line-length=127 --statistics
3941
- name: Test with unpythonic.test.fixtures
4042
run: |
43+
$(pdm venv activate)
4144
python runtests.py

0 commit comments

Comments
 (0)