forked from nltk/epydoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a tox env and github action to automate the testing nltk#7
- Loading branch information
1 parent
ca5479a
commit d3f451f
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Test epydoc | ||
|
||
on: | ||
push: | ||
branches: "*" | ||
|
||
jobs: | ||
doc: | ||
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 .. | ||
This file contains 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
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 | ||
|