diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..a31480c --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,34 @@ +name: CI + +permissions: + contents: read + +on: + push: + branches: [master] + pull_request: + +jobs: + test: + name: Test / ${{ matrix.python }} / ${{ matrix.os }} + runs-on: ${{ matrix.os }}-latest + strategy: + fail-fast: false + matrix: + os: [ubuntu, macos, windows] + python: ["3.7", "3.8", "3.9", "3.10", "3.11.0-rc - 3.11", + "pypy-3.7", "pypy-3.8", "pypy-3.9"] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + + - name: Install tox + run: python -m pip install tox + + - name: Run tests + run: python -m tox -e py -- --verbose diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 817661c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: python -cache: pip - -# Supported CPython versions: -# https://en.wikipedia.org/wiki/CPython#Version_history -matrix: - fast_finish: true - include: - - python: 3.11 - - python: 3.10 - - python: 3.9 - - python: 3.8 - - python: 3.7 - - python: pypy3 - -install: - - pip install -U pip - - pip install -U tox-travis - -script: - - tox diff --git a/tox.ini b/tox.ini index f9d53c7..9b820e3 100644 --- a/tox.ini +++ b/tox.ini @@ -3,4 +3,4 @@ envlist = py37, py38, py39, py310, py311, pypy3 isolated_build = True [testenv] -commands = python -m unittest +commands = python -m unittest {posargs}