File tree Expand file tree Collapse file tree 3 files changed +53
-74
lines changed Expand file tree Collapse file tree 3 files changed +53
-74
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 78
78
name : code-coverage
79
79
path : coverage/.coverage.py*
80
80
81
+ run-pypy-tests :
82
+ runs-on : ${{matrix.os}}
83
+ strategy :
84
+ matrix :
85
+ os : [ubuntu-latest]
86
+ version : ['3.9', '3.10']
87
+ include :
88
+ - version : ' 3.9'
89
+ tox-env : pypy39
90
+ - version : ' 3.10'
91
+ tox-env : pypy310
92
+ steps :
93
+ - uses : actions/checkout@v3
94
+ - uses : actions/setup-python@v4
95
+ with :
96
+ python-version : pypy${{ matrix.version }}
97
+ - name : Cache dependencies
98
+ id : cache-deps
99
+ uses : actions/cache@v3
100
+ with :
101
+ path : |
102
+ .tox
103
+ ~/.cache/pip
104
+ ~/.cache/pypoetry
105
+ ~/.local/bin/poetry
106
+ ~/.local/share/pypoetry
107
+ key : ${{ runner.os }}-pypy-${{ matrix.version }}-poetry-${{ hashFiles('.github/workflows/run-tests.yml', 'pyproject.toml', 'tox.ini') }}
108
+ - name : Install Poetry
109
+ if : steps.cache-deps.outputs.cache-hit != 'true'
110
+ run : curl -sSL https://install.python-poetry.org | python3 -
111
+ - name : Install Tox
112
+ run : |
113
+ pip install -U pip
114
+ pip install tox
115
+ - name : Run tests
116
+ env :
117
+ TOX_PARALLEL_NO_SPINNER : 1
118
+ TOX_SHOW_OUTPUT : " True"
119
+ TOXENV : ${{ matrix.tox-env }}
120
+ run : |
121
+ tox run -- -n 2
122
+ mkdir coverage
123
+ mv .coverage.* "coverage/.coverage.py${{ matrix.version }}"
124
+ - name : Archive code coverage results
125
+ uses : actions/upload-artifact@v3
126
+ with :
127
+ name : code-coverage
128
+ path : coverage/.coverage.py*
129
+
81
130
min-deps-test :
82
131
# Attempt to run the TOX-ENV tests for the given OS and python
83
132
# VERSION with the minimal possible Basilisp dependencies
@@ -136,7 +185,9 @@ jobs:
136
185
137
186
report-coverage :
138
187
runs-on : ubuntu-latest
139
- needs : run-tests
188
+ needs :
189
+ - run-tests
190
+ - run-pypy-tests
140
191
steps :
141
192
- uses : actions/checkout@v3
142
193
- uses : actions/setup-python@v4
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ setenv =
11
11
deps =
12
12
coverage[toml]
13
13
pytest >=7.0.0,<8.0.0
14
+ pytest-xdist >=3.6.1,<4.0.0
14
15
pygments
15
16
commands =
16
17
coverage run \
You can’t perform that action at this time.
0 commit comments