File tree 3 files changed +46
-19
lines changed
3 files changed +46
-19
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
10
+ package :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Build and Check Package
15
+
16
+
10
17
deploy :
18
+ needs : [package]
19
+
11
20
if : github.repository == 'pytest-dev/pytest-qt'
12
21
13
22
runs-on : ubuntu-latest
14
23
24
+ permissions :
25
+ id-token : write # For PyPI trusted publishers.
26
+ contents : write # For release.
27
+
15
28
steps :
16
29
- uses : actions/checkout@v3
17
- with :
18
- fetch-depth : 0
19
- persist-credentials : false
20
30
21
- - name : Set up Python
22
- uses : actions/setup-python @v3
31
+ - name : Download Package
32
+ uses : actions/download-artifact @v3
23
33
with :
24
- python-version : " 3.x"
25
-
26
- - name : Build package
27
- run : |
28
- python -m pip install --upgrade pip
29
- pip install build
30
- python -m build
34
+ name : Packages
35
+ path : dist
31
36
32
37
- name : Publish package to PyPI
33
-
38
+
39
+
40
+ - name : GitHub Release
41
+ uses : softprops/action-gh-release@v1
34
42
with :
35
- user : __token__
36
- password : ${{ secrets.pypi_token }}
43
+ body_path : scripts/latest-release-notes.md
44
+ files : dist/*
Original file line number Diff line number Diff line change @@ -8,7 +8,16 @@ concurrency:
8
8
cancel-in-progress : true
9
9
10
10
jobs :
11
- build :
11
+ package :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Build and Check Package
16
+
17
+
18
+ test :
19
+
20
+ needs : [package]
12
21
13
22
runs-on : ${{ matrix.os }}
14
23
strategy :
@@ -40,12 +49,19 @@ jobs:
40
49
41
50
steps :
42
51
- uses : actions/checkout@v3
52
+
43
53
- name : Set up Python ${{ matrix.python-version }}
44
54
uses : actions/setup-python@v3
45
55
with :
46
56
python-version : ${{ matrix.python-version }}
47
57
48
- - name : Install dependencies
58
+ - name : Download Package
59
+ uses : actions/download-artifact@v3
60
+ with :
61
+ name : Packages
62
+ path : dist
63
+
64
+ - name : Install Dependencies
49
65
run : |
50
66
python -m pip install --upgrade pip
51
67
pip install tox
54
70
sudo apt-get install -y libgles2-mesa-dev
55
71
fi
56
72
shell : bash
57
- - name : Test with tox
73
+
74
+ - name : Test
75
+ shell : bash
58
76
run : |
59
- tox -e ${{ matrix.tox-env }}-${{ matrix.qt-lib }} -- -ra --color=yes
77
+ tox -e ${{ matrix.tox-env }}-${{ matrix.qt-lib }} --installpkg `find dist/*.tar.gz` -- -ra
Original file line number Diff line number Diff line change 18
18
19
19
description = "pytest support for PyQt and PySide applications" ,
20
20
long_description = Path ("README.rst" ).read_text (encoding = "UTF-8" ),
21
+ long_description_content_type = "text/x-rst" ,
21
22
license = "MIT" ,
22
23
keywords = "pytest qt test unittest" ,
23
24
url = "http://github.com/pytest-dev/pytest-qt" ,
You can’t perform that action at this time.
0 commit comments