Skip to content

Commit

Permalink
Add python 3.12 to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ratoaq2 committed Jun 22, 2024
1 parent 85dd856 commit 5735188
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', 3.11]
python-version: [3.8, 3.9, '3.10', 3.11, 3.12]
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion knowit/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def format_duration(
seconds = int(seconds - (minutes * 60))
if profile == 'human':
if hours > 0:
return f'{hours} hours {minutes:02d} minutes { seconds:02d} seconds'
return f'{hours} hours {minutes:02d} minutes {seconds:02d} seconds'
if minutes > 0:
return f'{minutes} minutes {seconds:02d} seconds'
return f'{seconds} seconds'
Expand Down
14 changes: 7 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pydocstyle = "^6.1.1"
mypy = "^1.1.1"
types-requests = "^2.28.11.8"
types-mock = "^5.0.0.2"
typing-extensions = "^4.12.2"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 5735188

Please sign in to comment.