diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..97cd712 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: Python CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python: + - {version: "3.9", toxenv: "py39"} + - {version: "3.10", toxenv: "py310"} + - {version: "3.11", toxenv: "py311"} + - {version: "3.12", toxenv: "py312"} + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python.version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python.version }} + - name: Install dependencies + run: python -m pip install tox + - name: Run tests + run: tox -e "${{ matrix.python.toxenv }}" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 88bee9a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: python - -matrix: - include: - - python: 3.7 - os: linux - dist: xenial - env: TOXENV=flake8 - - python: 3.6 - os: linux - dist: trusty - env: TOXENV=py36 - - python: 3.7 - os: linux - dist: xenial - env: TOXENV=py37 - - python: 3.8 - os: linux - dist: xenial - env: TOXENV=py38 - - python: 3.9 - os: linux - dist: xenial - env: TOXENV=py39 - -install: - - pip install tox - -script: - - tox -e "${TOXENV}"