File tree Expand file tree Collapse file tree 4 files changed +20
-219
lines changed Expand file tree Collapse file tree 4 files changed +20
-219
lines changed Original file line number Diff line number Diff line change 9
9
- id : trailing-whitespace
10
10
- id : end-of-file-fixer
11
11
- id : check-yaml
12
+ - id : check-toml
Original file line number Diff line number Diff line change @@ -26,25 +26,27 @@ runs:
26
26
update-environment : false
27
27
cache : pip
28
28
29
+ - uses : pdm-project/setup-pdm@v3
30
+ with :
31
+ python-version : 3.x
32
+ cache : true
33
+
29
34
- name : Create venv for tools
30
- run : ${{ steps.python-baipp.outputs.python-path }} -Im venv /tmp/baipp
31
35
shell : bash
36
+ run : |
37
+ pwd
38
+ ls -a
39
+ pdm venv create --name baipp ${{ steps.python-baipp.outputs.python-path }}
40
+ pdm venv list -v
32
41
33
- - name : Install our tools
34
- run : >
35
- /tmp/baipp/bin/python
36
- -Im pip
37
- --disable-pip-version-check
38
- --no-python-version-warning
39
- install -r ${{ github.action_path }}/requirements/tools.txt
40
- shell : bash
42
+ pdm sync --venv baipp
41
43
42
44
# Build SDist, then build wheel out of it.
43
45
# Set 'SOURCE_DATE_EPOCH' based on the last commit for build
44
46
# reproducibility.
45
47
- run : >
46
48
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
47
- /tmp/baipp/bin/python -m build --outdir /tmp/baipp/dist
49
+ pdm run build --outdir /tmp/baipp/dist
48
50
shell: bash
49
51
working-directory: ${{ inputs.path }}
50
52
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" pdm-pep517" ]
3
+ build-backend = " pdm.pep517.api"
4
+
5
+ [tool .pdm .scripts ]
6
+ build = " python -Im build"
7
+
1
8
[project ]
2
9
name = " build-and-inspect-python-package"
3
10
version = " 0" # we're not an actual package.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments