Skip to content

Commit 16e512e

Browse files
Refs #265. Include defusedxml
1 parent 5ee0659 commit 16e512e

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,38 @@ on:
44
push:
55

66
jobs:
7-
test:
7+
legacy:
88
runs-on: ubuntu-latest
99
strategy:
10-
matrix:
11-
include:
12-
- python-version: 2.7
13-
image: python:2.7-slim
14-
- python-version: 3.6
15-
image: python:3.6-slim
16-
- python-version: 3.7
17-
image: python:3.7-slim
10+
matrix:
11+
python: [2.6, 2.7, 3.3, 3.4, 3.6, 3.7]
12+
defusedxml: [none, 0.4.1]
13+
include:
14+
- python: 2.6
15+
image: python:2.6-slim
16+
- python: 2.7
17+
image: python:2.7-slim
18+
- python: 3.3
19+
image: python:3.3-slim
20+
- python: 3.4
21+
image: python:3.4-slim
22+
- python: 3.6
23+
image: python:3.6-slim
24+
- python: 3.7
25+
image: python:3.7-slim
26+
1827
container:
19-
image: python:${{ matrix.python-version }}-slim
28+
image: ${{ matrix.image }}
29+
2030
steps:
2131
- uses: actions/checkout@v4
2232
- name: Check python version
2333
run: python --version
2434
- name: Install dependencies
2535
run: pip install --requirement requirements/testing.txt
36+
- name: Install defusedxml if specified
37+
if: ${{ matrix.defusedxml != 'none' }}
38+
run: pip install defusedxml==${{ matrix.defusedxml }}
2639
- name: Install PyDocX
2740
run: pip install -e .[dev] # editable install so CLI entry points are available
2841
- name: Run tests

0 commit comments

Comments
 (0)