File tree 2 files changed +44
-15
lines changed
2 files changed +44
-15
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
13
- deploy :
13
+ package :
14
14
runs-on : ubuntu-latest
15
- environment : deploy
16
- permissions :
17
- id-token : write # For PyPI trusted publishers.
18
- contents : write # For tag and release notes.
19
15
env :
20
16
SETUPTOOLS_SCM_PRETEND_VERSION : ${{ github.event.inputs.version }}
21
17
25
21
- name : Build and Check Package
26
22
27
23
24
+ deploy :
25
+ needs : package
26
+ runs-on : ubuntu-latest
27
+ environment : deploy
28
+ permissions :
29
+ id-token : write # For PyPI trusted publishers.
30
+ contents : write # For tag and release notes.
31
+
32
+ steps :
33
+ - uses : actions/checkout@v3
34
+
28
35
- name : Download Package
29
36
uses : actions/download-artifact@v3
30
37
with :
36
43
37
44
- name : Push tag
38
45
run : |
39
- git tag v${{ github.event.inputs.version }} ${{ github.sha }}
46
+ git config user.name "pytest bot"
47
+ git config user.email "[email protected] "
48
+ git tag --annotate --message=v${{ github.event.inputs.version }} v${{ github.event.inputs.version }} ${{ github.sha }}
40
49
git push origin v${{ github.event.inputs.version }}
41
50
42
51
- name : Set up Python
54
63
uses : softprops/action-gh-release@v1
55
64
with :
56
65
body_path : scripts/latest-release-notes.md
66
+ files : dist/*
Original file line number Diff line number Diff line change 1
1
name : test
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - " test-me-*"
8
+
9
+ pull_request :
10
+
4
11
5
12
concurrency :
6
13
group : ${{ github.workflow }}-${{ github.ref }}
7
14
cancel-in-progress : true
8
15
9
16
jobs :
10
17
18
+ package :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v3
22
+ - name : Build and Check Package
23
+
24
+
11
25
test :
12
26
27
+ needs : [package]
28
+
13
29
runs-on : ${{ matrix.os }}
14
30
15
31
strategy :
@@ -31,21 +47,24 @@ jobs:
31
47
32
48
steps :
33
49
- uses : actions/checkout@v3
50
+
51
+ - name : Download Package
52
+ uses : actions/download-artifact@v3
53
+ with :
54
+ name : Packages
55
+ path : dist
56
+
34
57
- name : Set up Python
35
58
uses : actions/setup-python@v4
36
59
with :
37
60
python-version : ${{ matrix.python }}
61
+
38
62
- name : Install tox
39
63
run : |
40
64
python -m pip install --upgrade pip
41
65
pip install tox
66
+
42
67
- name : Test
68
+ shell : bash
43
69
run : |
44
- tox -e ${{ matrix.tox_env }}
45
-
46
- check-package :
47
- runs-on : ubuntu-latest
48
- steps :
49
- - uses : actions/checkout@v3
50
- - name : Build and Check Package
51
-
70
+ tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz`
You can’t perform that action at this time.
0 commit comments