Skip to content

Commit 45cfe90

Browse files
authored
Switch to GitHub actions (stefankoegl#144)
* Switch to GitHub actions * add support for Python 3.11, remove 3.5, 3.6
1 parent 33562b0 commit 45cfe90

File tree

3 files changed

+35
-36
lines changed

3 files changed

+35
-36
lines changed

.github/workflows/test.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11"]
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install flake8 pytest
24+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25+
pip install coveralls
26+
# - name: Lint with flake8
27+
# run: |
28+
# stop the build if there are Python syntax errors or undefined names
29+
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
30+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
31+
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32+
- name: Test
33+
run: |
34+
coverage run --source=jsonpointer tests.py

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@
5656
'Programming Language :: Python :: 2',
5757
'Programming Language :: Python :: 2.7',
5858
'Programming Language :: Python :: 3',
59-
'Programming Language :: Python :: 3.5',
60-
'Programming Language :: Python :: 3.6',
6159
'Programming Language :: Python :: 3.7',
6260
'Programming Language :: Python :: 3.8',
6361
'Programming Language :: Python :: 3.9',
@@ -80,7 +78,7 @@
8078
package_data={'': ['requirements.txt']},
8179
scripts=['bin/jsondiff', 'bin/jsonpatch'],
8280
classifiers=CLASSIFIERS,
83-
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
81+
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*',
8482
project_urls={
8583
'Website': 'https://github.com/stefankoegl/python-json-patch',
8684
'Repository': 'https://github.com/stefankoegl/python-json-patch.git',

0 commit comments

Comments
 (0)