Skip to content

Github actions #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
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
47 changes: 0 additions & 47 deletions .github/workflows/manual.yml

This file was deleted.

98 changes: 98 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# This workflow will install Python dependencies, lint, and run tests in supported versions of Python.
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: tests

on:
push:
branches: [ "master", "gha" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:

pytest:
strategy:
matrix:
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14.0-alpha.5"]
include:
- python-version: "3.5"
os: ubuntu-20.04
- python-version: "3.6"
os: ubuntu-20.04
- python-version: "3.7"
os: ubuntu-22.04
- python-version: "3.8"
os: ubuntu-24.04
- python-version: "3.9"
os: ubuntu-24.04
- python-version: "3.10"
os: ubuntu-24.04
- python-version: "3.11"
os: ubuntu-24.04
- python-version: "3.12"
os: ubuntu-24.04
- python-version: "3.13"
os: ubuntu-24.04
- python-version: "3.14.0-alpha.5"
os: ubuntu-24.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/pytest.txt
- name: Test with pytest
run: |
coverage run -m pytest
coverage report -m

pytest-python27:
runs-on: ubuntu-latest
container: coatldev/six:latest
steps:
- uses: actions/checkout@v4
- name: Display Python version
run: python2 -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python2 -m pip install --upgrade pip
pip2 install -r requirements/pytest.txt
- name: Test with pytest
run: |
coverage2 run -m pytest
coverage2 report -m

flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Display Python verison
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/flake8.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

137 changes: 0 additions & 137 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include README.md CHANGELOG.md LICENSE.txt
recursive-include test *
recursive-include test requirements
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pip install intervaltree
Features
--------

* Supports Python 2.7 and Python 3.6+ (Tested under 2.7, and 3.6 thru 3.11)
* Supports Python 2.7 and Python 3.5+ (Tested under 2.7, and 3.5 thru 3.14)
* Initializing
* blank `tree = IntervalTree()`
* from an iterable of `Interval` objects (`tree = IntervalTree(intervals)`)
Expand Down Expand Up @@ -356,15 +356,15 @@ Based on
Copyright
---------

* [Chaim Leib Halbert][GH], 2013-2023
* [Chaim Leib Halbert][GH], 2013-2025
* Modifications, [Konstantin Tretyakov][Konstantin intervaltree], 2014

Licensed under the [Apache License, version 2.0][Apache].

The source code for this project is at https://github.com/chaimleib/intervaltree


[build status badge]: https://github.com/chaimleib/intervaltree/workflows/ci/badge.svg
[build status badge]: https://github.com/chaimleib/intervaltree/workflows/tests/badge.svg
[build status]: https://github.com/chaimleib/intervaltree/actions
[GH]: https://github.com/chaimleib/intervaltree
[issue tracker]: https://github.com/chaimleib/intervaltree/issues
Expand Down
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[project]
name = "intervaltree"
description='Editable interval tree data structure for Python 2 and 3'
version = "3.2.0"
authors = [
{ name="Chaim Leib Halbert", email="chaim.leib.halbert@gmail.com" },
{ name="Konstantin Tretyakov" },
]
readme = "README.md"
requires-python = ">= 2.7.18, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
license = "Apache-2.0"
keywords = ['interval-tree', 'data-structure', 'intervals', 'tree']
classifiers = [
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: Implementation :: PyPy',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'License :: OSI Approved :: Apache Software License',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries',
'Topic :: Text Processing :: General',
'Topic :: Text Processing :: Linguistic',
'Topic :: Text Processing :: Markup',
]

[project.urls]
Homepage = "https://github.com/chaimleib/intervaltree"
Issues = "https://github.com/chaimleib/intervaltree/issues"

[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-r requirements/common.txt
1 change: 1 addition & 0 deletions requirements/common.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sortedcontainers==2.4.0
1 change: 1 addition & 0 deletions requirements/flake8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flake8
3 changes: 3 additions & 0 deletions requirements/pytest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r common.txt
pytest
pytest-cov
15 changes: 0 additions & 15 deletions scripts/testall.sh

This file was deleted.

Loading
Loading