diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c646d49 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: Test + +on: [push, pull_request, workflow_dispatch] + +jobs: + test: + name: Run tests on Python ${{ matrix.python_version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python_version: ['2.7', '3.7', '3.8', '3.9', '3.10', '3.11'] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python_version }} + - name: Display Python version + run: python --version + - name: Test + run: | + python setup.py test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index deafd0f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python -python: - - "2.7" - - "3.5" - - "3.6" - - "3.7" - - "3.8" - - "3.9-dev" - -# command to run tests -script: python setup.py test -