diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..35d6fd2 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,31 @@ +name: Test + +on: [push, pull_request] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11', '3.12'] + sympy-version: ['1.12', '1.11', '1.10', '1.9', '1.8', '1.7', '1.6'] + + steps: + - uses: actions/checkout@v2 + + - name: Setup conda + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + miniconda-version: "latest" + mamba-version: "*" + channels: conda-forge + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + shell: bash -l {0} + run: mamba install sympy=${{ matrix.sympy-version }} pytest + + - name: Test with pytest + shell: bash -l {0} + run: pytest -v --color=yes test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e3ca62c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: python -sudo: false - -matrix: - include: - - python: 3.6 - - python: 3.7 - dist: xenial - sudo: true - - python: 3.8 - dist: xenial - sudo: true - -install: - - python setup.py install - -script: - - python setup.py test diff --git a/README.md b/README.md index 2337dd8..adf9b0a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # angcorrwat -[![Build Status](https://travis-ci.com/op3/angcorrwat.svg?branch=master)](https://travis-ci.com/op3/angcorrwat) +![Build Status](https://github.com/op3/angcorrwat/actions/workflows/run-tests.yml/badge.svg) [![License](https://img.shields.io/badge/License-GPL%20v3+-blue.svg)](LICENSE) [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/op3/angcorrwat/master?filepath=doc%2Ftutorial.ipynb)