diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ef2af67 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: [pull_request] + +jobs: + build: + name: Test on ${{ matrix.os }} / Python ${{ matrix.python-version }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-20.04, windows-2019, macos-10.15] + python-version: [ '3.6', '3.7', '3.8', '3.9', 'pypy-3.6', 'pypy-3.7' ] + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Build package + run: python setup.py install + - name: Run tests + run: python tests.py + - name: Run mypy tests + run: python mypy_run.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b4db6f3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -language: python -sudo: false - -matrix: - include: - - python: 3.5 - - python: 3.6 - - python: 3.7 - dist: xenial - sudo: true - - python: pypy3 -#power_jobs - - python: 3.5 - arch: ppc64le - - python: 3.6 - arch: ppc64le - - python: 3.7 - dist: xenial - sudo: true - arch: ppc64le -# Disable version pypy3 -jobs: - exclude: - - arch: ppc64le - python: pypy3 - -branches: - only: - - master - -before_install: - - pip install -U setuptools pip wheel - -install: - - python -V - - pip install . - -script: - - ./tests.py - - python mypy_run.py -