@@ -24,14 +24,12 @@ jobs:
24
24
" windows-py37" ,
25
25
" windows-pypy3" ,
26
26
27
- # Eventually should convert travis to Github Actions as well.
28
- # Commented stuff is in preparation for that.
29
- # "ubuntu-py35",
30
- # "ubuntu-py36",
31
- # "ubuntu-py36-pytestmain",
32
- # "ubuntu-py37",
33
- # "ubuntu-py38",
34
- # "ubuntu-pypy3",
27
+ " ubuntu-py35" ,
28
+ " ubuntu-py36" ,
29
+ " ubuntu-py36-pytestmain" ,
30
+ " ubuntu-py37" ,
31
+ " ubuntu-py38" ,
32
+ " ubuntu-pypy3" ,
35
33
" ubuntu-benchmark" ,
36
34
37
35
" linting" ,
@@ -55,30 +53,36 @@ jobs:
55
53
python : " pypy3"
56
54
os : windows-latest
57
55
tox_env : " pypy3"
58
- # - name: "ubuntu-py35"
59
- # python: "3.5"
60
- # os: ubuntu-latest
61
- # tox_env: "py35"
62
- # - name: "ubuntu-py36"
63
- # python: "3.6"
64
- # os: ubuntu-latest
65
- # tox_env: "py36"
66
- # - name: "ubuntu-py36-pytestmain"
67
- # python: "3.6"
68
- # os: ubuntu-latest
69
- # tox_env: "py36-pytestmain"
70
- # - name: "ubuntu-py37"
71
- # python: "3.7"
72
- # os: ubuntu-latest
73
- # tox_env: "py37"
74
- # - name: "ubuntu-py38"
75
- # python: "3.8"
76
- # os: ubuntu-latest
77
- # tox_env: "py38"
78
- # - name: "ubuntu-pypy3"
79
- # python: "pypy3"
80
- # os: ubuntu-latest
81
- # tox_env: "pypy3"
56
+ - name : " ubuntu-py35"
57
+ python : " 3.5"
58
+ os : ubuntu-latest
59
+ tox_env : " py35"
60
+ use_coverage : true
61
+ - name : " ubuntu-py36"
62
+ python : " 3.6"
63
+ os : ubuntu-latest
64
+ tox_env : " py36"
65
+ use_coverage : true
66
+ - name : " ubuntu-py36-pytestmain"
67
+ python : " 3.6"
68
+ os : ubuntu-latest
69
+ tox_env : " py36-pytestmain"
70
+ use_coverage : true
71
+ - name : " ubuntu-py37"
72
+ python : " 3.7"
73
+ os : ubuntu-latest
74
+ tox_env : " py37"
75
+ use_coverage : true
76
+ - name : " ubuntu-py38"
77
+ python : " 3.8"
78
+ os : ubuntu-latest
79
+ tox_env : " py38"
80
+ use_coverage : true
81
+ - name : " ubuntu-pypy3"
82
+ python : " pypy3"
83
+ os : ubuntu-latest
84
+ tox_env : " pypy3"
85
+ use_coverage : true
82
86
- name : " ubuntu-benchmark"
83
87
python : " 3.8"
84
88
os : ubuntu-latest
@@ -104,17 +108,46 @@ jobs:
104
108
105
109
- name : Install dependencies
106
110
run : |
107
- python -m pip install --upgrade pip
111
+ python -m pip install --upgrade pip setuptools
108
112
python -m pip install tox coverage
109
113
110
114
- name : Test without coverage
111
115
if : " ! matrix.use_coverage"
112
116
run : " tox -e ${{ matrix.tox_env }}"
113
117
114
- # - name: Test with coverage
115
- # if: "matrix.use_coverage"
116
- # env:
117
- # _PYTEST_TOX_COVERAGE_RUN: "coverage run -m"
118
- # COVERAGE_PROCESS_START: ".coveragerc"
119
- # _PYTEST_TOX_EXTRA_DEP: "coverage-enable-subprocess"
120
- # run: "tox -e ${{ matrix.tox_env }}"
118
+ - name : Test with coverage
119
+ if : " matrix.use_coverage"
120
+ run : " tox -e ${{ matrix.tox_env }}-coverage"
121
+
122
+ - name : Upload coverage
123
+ if : matrix.use_coverage && github.repository == 'pytest-dev/pluggy'
124
+ env :
125
+ CODECOV_NAME : ${{ matrix.name }}
126
+ run : bash scripts/upload-coverage.sh -F GHA,${{ runner.os }}
127
+
128
+ deploy :
129
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pluggy'
130
+ runs-on : ubuntu-latest
131
+
132
+ steps :
133
+ - uses : actions/checkout@v2
134
+ with :
135
+ fetch-depth : 0
136
+
137
+ - uses : actions/setup-python@v2
138
+ with :
139
+ python-version : " 3.8"
140
+
141
+ - name : Install dependencies
142
+ run : |
143
+ python -m pip install --upgrade pip
144
+ pip install --upgrade wheel setuptools setuptools_scm
145
+
146
+ - name : Build package
147
+ run : python setup.py sdist bdist_wheel
148
+
149
+ - name : Publish package
150
+
151
+ with :
152
+ user : __token__
153
+ password : ${{ secrets.pypi_token }}
0 commit comments