@@ -16,13 +16,12 @@ jobs:
16
16
- { python-version: 3.8, os: ubuntu-latest, session: "safety" }
17
17
- { python-version: 3.8, os: ubuntu-latest, session: "mypy" }
18
18
- { python-version: 3.7, os: ubuntu-latest, session: "mypy" }
19
- - { python-version: 3.6, os: ubuntu-latest, session: "mypy" }
20
19
- { python-version: 3.8, os: ubuntu-latest, session: "tests" }
21
20
- { python-version: 3.7, os: ubuntu-latest, session: "tests" }
22
- - { python-version: 3.6, os: ubuntu-latest, session: "tests" }
23
21
- { python-version: 3.8, os: windows-latest, session: "tests" }
24
22
- { python-version: 3.8, os: macos-latest, session: "tests" }
25
23
# - { python-version: 3.8, os: ubuntu-latest, session: "typeguard" }
24
+ - { python-version: 3.8, os: ubuntu-latest, session: "xdoctest" }
26
25
- { python-version: 3.8, os: ubuntu-latest, session: "docs-build" }
27
26
28
27
env :
49
48
50
49
- name : Install Nox
51
50
run : |
52
- pip install --constraint=.github/workflows/constraints.txt nox
51
+ pip install --constraint=.github/workflows/constraints.txt nox nox-poetry
53
52
nox --version
54
53
55
54
- name : Compute pre-commit cache key
68
67
print("::set-output name=result::{}".format(result))
69
68
70
69
- name : Restore pre-commit cache
71
- uses : actions/cache@v2
70
+ uses : actions/cache@v2.1.3
72
71
if : matrix.session == 'pre-commit'
73
72
with :
74
73
path : ~/.cache/pre-commit
@@ -80,18 +79,59 @@ jobs:
80
79
run : |
81
80
nox --force-color --python=${{ matrix.python-version }}
82
81
82
+ - name : Upload coverage data
83
+ if : always() && matrix.session == 'tests'
84
+
85
+ with :
86
+ name : coverage-data
87
+ path : " .coverage.*"
88
+
83
89
- name : Upload documentation
84
90
if : matrix.session == 'docs-build'
85
- uses : actions/upload-artifact@v2
91
+ uses : actions/upload-artifact@v2.2.1
86
92
with :
87
93
name : docs
88
94
path : docs/_build
89
95
96
+ coverage :
97
+ runs-on : ubuntu-latest
98
+ needs : tests
99
+ steps :
100
+ - name : Check out the repository
101
+
102
+
103
+ - name : Set up Python 3.8
104
+
105
+ with :
106
+ python-version : 3.8
107
+
108
+ - name : Upgrade pip
109
+ run : |
110
+ pip install --constraint=.github/workflows/constraints.txt pip
111
+ pip --version
112
+
113
+ - name : Install Poetry
114
+ run : |
115
+ pip install --constraint=.github/workflows/constraints.txt poetry
116
+ poetry --version
117
+
118
+ - name : Install Nox
119
+ run : |
120
+ pip install --constraint=.github/workflows/constraints.txt nox nox-poetry
121
+ nox --version
122
+
123
+ - name : Download coverage data
124
+
125
+ with :
126
+ name : coverage-data
127
+
128
+ - name : Combine coverage data and display human readable report
129
+ run : |
130
+ nox --force-color --session=coverage
131
+
90
132
- name : Create coverage report
91
- if : always() && matrix.session == 'tests'
92
133
run : |
93
134
nox --force-color --session=coverage -- xml
94
135
95
136
- name : Upload coverage report
96
- if : always() && matrix.session == 'tests'
97
137
0 commit comments