Skip to content
Open
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
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- name: Install dependencies
run: uv sync --dev
- name: Run ruff check
run: uv run --with ruff ruff check .
- name: Run ruff format check
run: uv run --with ruff ruff format --check .
- name: Run mypy
run: uv run --with mypy mypy . || true

test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --dev
- name: Install package
run: uv pip install -e .[dev]
- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}/src
run: uv run pytest tests/

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- name: Build package
run: uv build

35 changes: 22 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
language: python

python:
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- nightly
- pypy
- pypy3
- "3.10"
- "3.11"
- "3.12"
- "3.13"

matrix:
allow_failures:
- python: 3.5
- python: nightly
# Install uv for fast Python package management
before_install:
- curl -LsSf https://astral.sh/uv/install.sh | sh
- export PATH="$HOME/.cargo/bin:$PATH"

script: python setup.py test
install:
- uv sync --dev

script:
# Linting
- uv run ruff check .
- uv run ruff format --check .
# Testing
- uv run pytest
# Build
- uv build

notifications:
email: false

Loading