Skip to content

Commit

Permalink
Switch to github-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
twmr committed Mar 30, 2022
1 parent d778584 commit e72528d
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 102 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test

on:
push:
paths-ignore:
- "*.md"

pull_request:
paths-ignore:
- "*.md"

jobs:
build:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch. Without this if check, checks are duplicated since
# internal PRs match both the push and pull_request events.
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: Unit tests
run: |
tox -e ci-py -- -v --color=yes
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

16 changes: 3 additions & 13 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,14 @@
pytest-sphinx
=============

.. image:: https://travis-ci.org/thisch/pytest-sphinx.svg?branch=master
:target: https://travis-ci.org/thisch/pytest-sphinx
:alt: See Build Status on Travis CI

.. image:: https://ci.appveyor.com/api/projects/status/github/thisch/pytest-sphinx?branch=master
:target: https://ci.appveyor.com/project/thisch/pytest-sphinx/branch/master
:alt: See Build Status on AppVeyor
.. image:: https://github.com/thisch/pytest-sphinx/workflows/Test/badge.svg
:target: https://github.com/thisch/pytest-sphinx/actions
:alt: Action Status

A doctest plugin for pytest, which understands the sphinx-specific
directives from `doctest-sphinx`_. Those sphinx-specific directives can be
used in rst files as well as in docstrings of python modules.

----

This `Pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `Cookiecutter-pytest-plugin`_ template.


Features
--------
Expand Down Expand Up @@ -71,13 +63,11 @@ If you encounter any problems, please `file an issue`_ along with a detailed des

.. _`doctest-sphinx`: http://www.sphinx-doc.org/en/stable/ext/doctest.html
.. _`doctest-examples`: https://github.com/sphinx-doc/sphinx/blob/master/tests/roots/test-ext-doctest/doctest.txt
.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter
.. _`@hackebrot`: https://github.com/hackebrot
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause
.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt
.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _`file an issue`: https://github.com/thisch/pytest-sphinx/issues
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`tox`: https://tox.readthedocs.io/en/latest/
Expand Down
40 changes: 0 additions & 40 deletions appveyor.yml

This file was deleted.

7 changes: 1 addition & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist = py35,py36,py37,py38,py39,pypy3,flake8
envlist = py37,py38,py39,py310,ci-py

[testenv]
deps =
pytest
sphinx
commands = pytest {posargs:tests}

[testenv:flake8]
skip_install = true
deps = flake8
commands = flake8 pytest_sphinx.py setup.py tests

0 comments on commit e72528d

Please sign in to comment.