diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml new file mode 100644 index 0000000..2880f4d --- /dev/null +++ b/.github/workflows/ci_workflows.yml @@ -0,0 +1,53 @@ +name: CI + +on: + pull_request: + push: + schedule: + # Run every Sunday at 06:53 UTC + - cron: 53 6 * * 0 + +jobs: + tests: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + python-version: 3.6 + toxenv: py36-test-pytest46 + - os: windows-latest + python-version: 3.6 + toxenv: py36-test-pytest50 + - os: macos-latest + python-version: 3.7 + toxenv: py37-test-pytest51 + - os: ubuntu-latest + python-version: 3.7 + toxenv: py37-test-pytest52 + - os: windows-latest + python-version: 3.8 + toxenv: py38-test-pytest53 + - os: ubuntu-latest + python-version: 3.8 + toxenv: py38-test-pytest60 + - os: macos-latest + python-version: 3.9 + toxenv: py39-test-pytest61 + - os: ubuntu-latest + python-version: 3.9 + toxenv: py39-test-pytestdev + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Tox + run: python -m pip install tox + - name: Run Tox + run: tox -v -e ${{ matrix.toxenv }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4dcf0f0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,74 +0,0 @@ -# We set the language to c because python isn't supported on the MacOS X nodes -# on Travis. However, the language ends up being irrelevant anyway, since we -# install Python ourselves using conda. -language: c - -os: - - linux - -# Use Travis' container-based architecture -sudo: false - -notifications: - slack: - on_success: never - on_failure: always - secure: "TGQd3tbCDD4yz71iDgcwydUCJERx9MGOAHOtVc6SLMANHXmrXl1vIdAChr4P/1LPqLawjUC/9mqBZTImQj/Pg5PaIVnz7K0PN/fTVHqCWERZoeW5KheQ6Wg89a9B54aDTGzvNuRH83l3jQBYfa9ZuCv5mpeVOIzPcBFUrD+9DqA93DJc1NIfwlyJStyXS7aVHhDsD318GZtxY5ZL1pA0GWfde68vc5/Ng6QLqqTeogEZ0reVsXDAijjnOAQsnzYBsZH86vS3JldihAfMygY2rr9jURfpx0EQivCBeJsKtm9IVEh4Iy54TzxyS87KRW1DGjPrIIDzdq2BXfKF+zTiy9QUHzwijJCE4EusCHjaITEis9lq77g9pQMDXCCBhKsgs69lYSSxmhD8VahH0Ex5Pj5aLy3X71yIAA95Xb8q0YPPsjVHF4R2F91S4QMPxyfddym7JiBvNWOPZ2Jye+an+H5hgRZvaSClUUjIT7MDX3UkhzvMrAD4n7Yl64wcPdmj4GJD04aOq55pCfEw088GDL64HAYYnCpEK+hkeKSpzYFjJEwPgC5dLY7RNUwm0tuyRcnLwoRMYLVMT7TWoSfgPosv7kciIkS5c6lmqPRV11AcJARPP6+XIUJ333rkqdLQy59VtiBASQRSxsZKqewEaYv5u+8g+y2vmMLQKkFPW60=" - if: type = cron - -env: - global: - # The following versions are the 'default' for tests, unless - # overidden underneath. They are defined here in order to save having - # to repeat them for all configurations. - - TOXENV='test' - - TOXARGS='-v' - - TOXPOSARGS='' - -matrix: - include: - - - language: python - python: 3.6 - name: Python 3.6 and pytest 4.6 (Linux) - env: TOXENV=py36-test-pytest46 - - - os: windows - name: Python 3.6 and pytest 5.0 (Windows) - env: PYTHON_VERSION=3.6 - TOXENV=py36-test-pytest50 - - - os: osx - name: Python 3.7 and pytest 5.1 (MacOS X) - env: PYTHON_VERSION=3.7 - TOXENV=py37-test-pytest51 - - - language: python - python: 3.7 - name: Python 3.7 and pytest 5.2 (Linux) - env: TOXENV=py37-test-pytest52 - - - os: windows - name: Python 3.8 and pytest 5.3 (Windows) - env: PYTHON_VERSION=3.8 - TOXENV=py38-test-pytest53 - - - language: python - python: 3.8 - name: Python 3.8 and pytest 6.0 (Linux) - env: TOXENV=py38-test-pytest60 - - - os: osx - name: Python 3.8 and pytest dev (MacOS X) - env: PYTHON_VERSION=3.8 - TOXENV=py38-test-pytestdev - -install: - - if [[ $TRAVIS_OS_NAME == osx || $TRAVIS_OS_NAME == windows ]]; then - git clone git://github.com/astropy/ci-helpers.git; - source ci-helpers/travis/setup_python.sh; - fi - -script: - - pip install tox - - tox $TOXARGS -- $TOXPOSARGS diff --git a/README.rst b/README.rst index 895b605..a056ddf 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,6 @@ -|Travis Build Status| |AppVeyor Build status| |Coverage| +.. image:: https://github.com/astropy/pytest-arraydiff/workflows/CI/badge.svg + :target: https://github.com/astropy/pytest-arraydiff/actions + :alt: CI Status About ----- @@ -186,10 +188,3 @@ install the latest version of the plugin then do:: The reason for having to install the plugin first is to ensure that the plugin is correctly loaded as part of the test suite. - -.. |Travis Build Status| image:: https://travis-ci.org/astrofrog/pytest-arraydiff.svg?branch=master - :target: https://travis-ci.org/astrofrog/pytest-arraydiff -.. |AppVeyor Build status| image:: https://ci.appveyor.com/api/projects/status/0nech6qgp8jlabjp/branch/master?svg=true - :target: https://ci.appveyor.com/project/astropy/pytest-arraydiff -.. |Coverage| image:: https://codecov.io/gh/astropy/pytest-arraydiff/branch/master/graph/badge.svg - :target: https://codecov.io/gh/astropy/pytest-arraydiff diff --git a/tox.ini b/tox.ini index 113a635..957e840 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{36,37,38}-test{,-devdeps} + py{36,37,38,39}-test{,-devdeps} codestyle requires = setuptools >= 30.3.0 @@ -17,6 +17,7 @@ deps = pytest52: pytest==5.2.* pytest53: pytest==5.3.* pytest60: pytest==6.0.* + pytest61: pytest==6.1.* pytestdev: git+https://github.com/pytest-dev/pytest#egg=pytest commands =