Skip to content

Commit

Permalink
Merge pull request #27 from useblocks/mh-fix-tox
Browse files Browse the repository at this point in the history
Fix the CI and expand Python versions
  • Loading branch information
ubmarco authored Jan 19, 2024
2 parents 9cf07dc + 9d4a605 commit 47a12b9
Show file tree
Hide file tree
Showing 5 changed files with 805 additions and 1,449 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [[3, 7], [3, 8], [3, 9]]
python-version: [[3, 8], [3, 9], [3, 10], [3, 11], [3, 12]]
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
- os: windows-latest
python-version: [3, 11]
- os: windows-latest
python-version: [3, 12]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -53,29 +58,21 @@ jobs:
shell: cmd
if: runner.os == 'Windows'

flake8_pylint_docs_black:
docs_black:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.12

- name: Install poetry and tox
run: |
python -m pip install poetry tox
- name: Run tox env flake8
run: |
tox -e flake8
- name: Run tox env pylint
run: |
tox -e pylint
- name: Run tox env docs
run: |
tox -e docs
Expand Down
2 changes: 1 addition & 1 deletion libpdf/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def to_dict_output(obj: Union[ModelBase, Position]) -> Dict: # pylint: disable=
def json_datetime_converter(obj):
"""Serialize datetime instance for JSON."""
if isinstance(obj, datetime.datetime):
return obj.__str__()
return str(obj)
return obj


Expand Down
Loading

0 comments on commit 47a12b9

Please sign in to comment.