Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test epydoc

on:
push:
branches: "*"

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install tox
run: |
python -m pip install --upgrade pip tox

- name: Install epydoc
run: |
cd src
python setup.py install
cd ..

- name: Log system information
run: |
test -r /etc/os-release && sh -c '. /etc/os-release && echo "OS: $PRETTY_NAME"'
python --version
python -c "print('\nENVIRONMENT VARIABLES\n=====================\n')"
python -c "import os; [print(f'{k}={v}') for k, v in os.environ.items()]"

- name: Test with python2.7 and python3.8
run: |
cd src
tox
cd ..

15 changes: 15 additions & 0 deletions src/tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tox]
minversion=3.20.1
requires=
virtualenv>=20.0.35
envlist =
test-{py27,py38}

[testenv]
deps =
test: docutils

commands =
test-py27: python epydoc/test/__init__.py
test-py38: python3 epydoc/test/__init__.py