Skip to content

Commit

Permalink
fix: Do not run pdm sync if skip_install is true
Browse files Browse the repository at this point in the history
* fix: Do not run `pdm sync` if skip_install is true
Fixes #49

Signed-off-by: Frost Ming <[email protected]>

* fix tests

Signed-off-by: Frost Ming <[email protected]>

* fix tests

Signed-off-by: Frost Ming <[email protected]>

* fix tests

Signed-off-by: Frost Ming <[email protected]>

* use django 3&4

Signed-off-by: Frost Ming <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix test

Signed-off-by: Frost Ming <[email protected]>

* Merge branch 'frostming/issue49' of github.com:pdm-project/tox-pdm into frostming/issue49

* fix test

Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming authored Jan 4, 2024
1 parent b490580 commit be0929b
Show file tree
Hide file tree
Showing 8 changed files with 151 additions and 104 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
cache: true
- name: Install dependencies
run: |
python -m pip install --upgrade tox .
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: "x64"

- name: Build artifacts
run: |
python3 -m pip install build
python3 -m build
pipx run build
- name: Upload to Pypi
run: |
pip install twine
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ groups = test
commands = test
```

If you want to skip the pdm install for some environments, you can set `skip_install = true` in the environment config.

A real-world example can be found at this repository's [tox.ini](https://github.com/pdm-project/tox-pdm/blob/main/tox.ini) and
[GitHub Action workflow](https://github.com/pdm-project/tox-pdm/blob/main/.github/workflows/ci.yml).

Expand Down
40 changes: 37 additions & 3 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit be0929b

Please sign in to comment.