Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Python CI

on:
pull_request:
branches: [ main, master ]
push:
branches: [ main, master ]
release:
types: [ released ]
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v4

- name: Install python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install tox
run: python -m pip install --upgrade tox

- name: Run lint
run: tox -e lint

test:
name: Python ${{ matrix.python-version }} (${{ matrix.platform }})
needs: lint
runs-on: ${{ matrix.platform }}

strategy:
fail-fast: false
matrix:
include:
- python-version: "3.9"
platform: ubuntu-latest
toxenv: py39
- python-version: "3.10"
platform: ubuntu-latest
toxenv: py310
- python-version: "3.11"
platform: ubuntu-latest
toxenv: py311
- python-version: "3.12"
platform: ubuntu-latest
toxenv: py312
- python-version: "3.13"
platform: ubuntu-latest
toxenv: py313
- python-version: "3.12"
platform: macos-latest
toxenv: py312
- python-version: "3.12"
platform: windows-latest
toxenv: py312

steps:
- uses: actions/checkout@v4

- name: Install python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install tox
run: python -m pip install --upgrade tox

- name: Run tests
run: tox -e ${{ matrix.toxenv }}
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
[tox]
envlist = py3{9,10,11,12,13}

[testenv]
deps = -rrequirements.txt
commands=py.test

[testenv:lint]
commands =
pre-commit run -a {posargs}
deps =
pre-commit
skip_install = true
Loading