@@ -13,16 +13,17 @@ jobs:
13
13
runs-on : " ubuntu-20.04"
14
14
continue-on-error : ${{ matrix.config.experimental }}
15
15
env :
16
- USING_COVERAGE : ' 3.6,3. 7,3.8,3.9'
16
+ USING_COVERAGE : ' 3.7,3.8,3.9,3.10.0-alpha.5,pypy-3.6 '
17
17
18
18
strategy :
19
19
fail-fast : False
20
20
matrix :
21
21
config :
22
- - {python-version: "3.6", testenvs: "py36,build", experimental: False}
23
22
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
24
23
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
25
24
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
25
+ - {python-version: "3.10.0-alpha.5", testenvs: "py310-dev,build", experimental: True}
26
+ - {python-version: "pypy-3.6", testenvs: "pypy3,build", experimental: False}
26
27
27
28
steps :
28
29
- name : Checkout 🛎️
@@ -39,11 +40,61 @@ jobs:
39
40
python -m site
40
41
python -m pip install --upgrade pip setuptools wheel
41
42
python -m pip install --upgrade tox virtualenv
43
+ python -m pip install --upgrade coverage_pyver_pragma
42
44
43
45
- name : " Run Tests for Python ${{ matrix.config.python-version }}"
44
46
run : python -m tox -e "${{ matrix.config.testenvs }}"
45
47
48
+ - name : " Upload Coverage 🚀"
49
+ uses : actions/upload-artifact@v2
50
+ if : ${{ always() }}
51
+ with :
52
+ name : " coverage-${{ matrix.config.python-version }}"
53
+ path : .coverage
54
+
55
+
56
+ Coverage :
57
+ needs : tests
58
+ runs-on : " ubuntu-20.04"
59
+ steps :
60
+ - name : Checkout 🛎️
61
+ uses : " actions/checkout@v2"
62
+
63
+ - name : Setup Python 🐍
64
+ uses : " actions/setup-python@v2"
65
+ with :
66
+ python-version : 3.8
46
67
68
+ - name : Install dependencies 🔧
69
+ run : |
70
+ python -m pip install --upgrade pip setuptools wheel
71
+ python -m pip install --upgrade "coveralls>=3.0.0" coverage_pyver_pragma
72
+
73
+ - name : " Download Coverage 🪂"
74
+ uses : actions/download-artifact@v2
75
+ with :
76
+ path : coverage
77
+
78
+ - name : Display structure of downloaded files
79
+ run : ls -R
80
+ working-directory : coverage
81
+
82
+ - name : Combine Coverage 👷
83
+ run : |
84
+ shopt -s globstar
85
+ python -m coverage combine coverage/**/.coverage
86
+
87
+ - name : " Upload Combined Coverage Artefact 🚀"
88
+ uses : actions/upload-artifact@v2
89
+ with :
90
+ name : " combined-coverage"
91
+ path : .coverage
92
+
93
+ - name : " Upload Combined Coverage to Coveralls"
94
+ env :
95
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96
+ run : |
97
+ coveralls --service=github
47
98
48
99
Deploy :
49
100
needs : tests
0 commit comments