Skip to content

Commit 6cd4d32

Browse files
authored
chore: refresh lock and use lock in ci (#281)
* ci: run tests with lock * update doc * to unix
1 parent d28b513 commit 6cd4d32

File tree

3 files changed

+826
-385
lines changed

3 files changed

+826
-385
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
python-version: ${{ matrix.python-version }}
2929
allow-prereleases: true
3030
cache: "pip"
31+
- name: Setup PDM
32+
uses: pdm-project/setup-pdm@v4
3133
- name: Install Dependencies
32-
run: |
33-
python -m pip install -U pip pytest setuptools editables pytest-gitconfig
34-
pip install .
34+
run: pdm sync
3535
- name: Install Mercurial
3636
shell: bash
3737
run: |
@@ -55,4 +55,4 @@ jobs:
5555
echo "username = \"John Doe <[email protected]>\"" >> ~/.hgrc
5656
- name: Run Tests
5757
run: |
58-
pytest -vvv tests
58+
pdm run pytest -vvv tests

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ this section.
4747
Following [the guide][pdm-install] to install PDM on your machine, then install the development dependencies:
4848

4949
```bash
50-
$ pdm install
50+
$ pdm sync
5151
```
5252

5353
It will create a virtualenv at `$PWD/.venv` and install all dependencies into it.

0 commit comments

Comments
 (0)