File tree Expand file tree Collapse file tree 2 files changed +39
-22
lines changed Expand file tree Collapse file tree 2 files changed +39
-22
lines changed Original file line number Diff line number Diff line change @@ -9,30 +9,33 @@ permissions: {}
9
9
10
10
jobs :
11
11
build :
12
- if : github.repository == 'jazzband/django-simple-menu'
12
+ name : Build and verify package
13
13
runs-on : ubuntu-latest
14
+ permissions :
15
+ attestations : write
16
+ id-token : write
14
17
15
18
steps :
16
- - uses : actions/checkout@v4
17
- with :
18
- fetch-depth : 0
19
- persist-credentials : false
19
+ - uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 0
22
+ persist-credentials : false
20
23
21
- - name : Set up Python
22
- uses : actions/setup-python@v5
24
+ - uses : hynek/build-and-inspect-python-package@v2
25
+ with :
26
+ attest-build-provenance-github : ' true'
27
+
28
+ release :
29
+ if : github.repository == 'jazzband/django-simple-menu'
30
+ runs-on : ubuntu-latest
31
+ needs : build
32
+
33
+ steps :
34
+ - name : Download pre-built packages
35
+ uses : actions/download-artifact@v4
23
36
with :
24
- python-version : 3.11
25
-
26
- - name : Install dependencies
27
- run : |
28
- python -m pip install -U pip
29
- python -m pip install -U build setuptools setuptools-scm twine
30
-
31
- - name : Build package
32
- run : |
33
- python -m setuptools_scm
34
- python -m build
35
- twine check --strict dist/*
37
+ name : Packages
38
+ path : dist
36
39
37
40
- name : Upload packages to Jazzband
38
41
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
Original file line number Diff line number Diff line change @@ -14,12 +14,26 @@ permissions: {}
14
14
15
15
jobs :
16
16
build :
17
- name : build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
17
+ name : Build and verify package
18
18
runs-on : ubuntu-latest
19
+
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 0
24
+ persist-credentials : false
25
+
26
+ - uses : hynek/build-and-inspect-python-package@v2
27
+
28
+ test :
29
+ name : Test (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
30
+ runs-on : ubuntu-latest
31
+ needs : build
32
+
19
33
strategy :
20
34
fail-fast : false
21
35
matrix :
22
- # https://docs.djangoproject.com/faq/install/#what -python-version-can-i-use-with-django
36
+ # https://docs.djangoproject.com/en/5.2/ faq/install/#faq -python-version-support
23
37
include :
24
38
- django-version : ' 3.2'
25
39
python-version : ' 3.8'
72
86
73
87
- name : Tox tests
74
88
run : |
75
- tox -v
89
+ tox -v --installpkg dist/*.whl
76
90
env :
77
91
DJANGO : ${{ matrix.django-version }}
78
92
You can’t perform that action at this time.
0 commit comments