Refs #265. Can't test on python 2.6 for now #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
jobs: | |
legacy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: [2.7, 3.3, 3.4, 3.6, 3.7] | |
defusedxml: [none, 0.4.1] | |
include: | |
- python: 2.7 | |
image: python:2.7-slim | |
- python: 3.3 | |
image: python:3.3-slim | |
- python: 3.4 | |
image: python:3.4-slim | |
- python: 3.6 | |
image: python:3.6-slim | |
- python: 3.7 | |
image: python:3.7-slim | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check python version | |
run: python --version | |
- name: Install dependencies | |
run: pip install --requirement requirements/testing.txt | |
- name: Install defusedxml if specified | |
if: ${{ matrix.defusedxml != 'none' }} | |
run: pip install defusedxml==${{ matrix.defusedxml }} | |
- name: Install PyDocX | |
run: pip install -e .[dev] # editable install so CLI entry points are available | |
- name: Run tests | |
run: nosetests --with-doctest |