Skip to content

Commit

Permalink
Various small improvements.
Browse files Browse the repository at this point in the history
* Remove encoding comment
* Enable newer Python versions for CI
* Advertise newer Python versions
  • Loading branch information
Anteru committed Aug 7, 2024
1 parent 20c1854 commit 1817900
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
os: [ubuntu-20.04, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, pypy3]
max-parallel: 4

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install py.test
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Test package
run: py.test
run: pytest
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
'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'
'Topic :: Software Development :: Libraries :: Python Modules',

]
Expand Down
1 change: 0 additions & 1 deletion sjson/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Module to parse SJSON files."""
# coding=utf8
# @author: Matthäus G. Chajdas
# @license: 3-clause BSD

Expand Down
1 change: 0 additions & 1 deletion sjson/test/test_sjson.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf8
# @author: Matthäus G. Chajdas
# @license: 3-clause BSD

Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[tox]
envlist=py36,py37,py38,py39
envlist=py38,py39,py310,py311,py312

[testenv]
deps=
pytest
commands=
py.test sjson
pytest sjson

[testenv:cov]
deps=
pytest
pytest-cov
coverage
commands=
py.test --cov=sjson sjson
pytest --cov=sjson sjson
coverage html

0 comments on commit 1817900

Please sign in to comment.