@@ -13,16 +13,17 @@ jobs:
1313 runs-on : " ubuntu-20.04"
1414 continue-on-error : ${{ matrix.config.experimental }}
1515 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 '
1717
1818 strategy :
1919 fail-fast : False
2020 matrix :
2121 config :
22- - {python-version: "3.6", testenvs: "py36,build", experimental: False}
2322 - {python-version: "3.7", testenvs: "py37,build", experimental: False}
2423 - {python-version: "3.8", testenvs: "py38,build", experimental: False}
2524 - {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}
2627
2728 steps :
2829 - name : Checkout 🛎️
@@ -39,11 +40,61 @@ jobs:
3940 python -m site
4041 python -m pip install --upgrade pip setuptools wheel
4142 python -m pip install --upgrade tox virtualenv
43+ python -m pip install --upgrade coverage_pyver_pragma
4244
4345 - name : " Run Tests for Python ${{ matrix.config.python-version }}"
4446 run : python -m tox -e "${{ matrix.config.testenvs }}"
4547
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
4667
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
4798
4899 Deploy :
49100 needs : tests
0 commit comments