Skip to content

Commit

Permalink
Update github, tox, and RTD configs
Browse files Browse the repository at this point in the history
Improve CI build matrices.
Drop docs from github CI build. We'll use the readthedocs CI to
build on pull requests
  • Loading branch information
sirosen committed Feb 5, 2022
1 parent 724d662 commit b5d6cd3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: "3.10"
- name: test
run: |
python setup.py sdist
Expand All @@ -25,6 +25,7 @@ jobs:
cd "nose2-${version}"
pip install -e '.[dev]'
nose2 -v --pretty-assert
test:
strategy:
fail-fast: false
Expand Down Expand Up @@ -53,15 +54,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: install tox
run: python -m pip install -U tox
- name: lint
run: python -m tox -e lint
# only lint on linux py3 box for faster overall builds
if: ${{ matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest' }}
- name: test
run: python -m tox -e py
# FIXME: ignore errors in windows builds (for now)
continue-on-error: ${{ matrix.os == 'windows-latest' }}
- name: ensure docs build
# docs are only ever built on a linux py3 box (readthedocs)
if: ${{ matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest' }}
run: python -m tox -e docs
16 changes: 16 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2

sphinx:
configuration: docs/conf.py

build:
os: ubuntu-20.04
tools:
python: "3.10"

python:
install:
- method: pip
path: .
extra_requirements:
- dev
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ skip_install = true
commands = pre-commit run --all-files

[testenv:docs]
basepython=python2.7
extras = dev
changedir=docs
commands=sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

0 comments on commit b5d6cd3

Please sign in to comment.