Skip to content
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

ci: also build with Python 3.11 #64

Merged
merged 2 commits into from
Mar 22, 2023
Merged
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
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ on:
jobs:
poetry-with-codecov:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
python-version:
- "3.10"
- "3.11"
uses: lars-reimann/.github/.github/workflows/poetry-codecov-reusable.yml@main
with:
working-directory: .
python-version: ${{ matrix.python-version }}
module-name: library_analyzer
coverage: ${{ matrix.python-version == '3.10' }}
6 changes: 5 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ concurrency:
jobs:
poetry-with-codecov:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
python-version:
- "3.10"
- "3.11"
uses: lars-reimann/.github/.github/workflows/poetry-codecov-reusable.yml@main
with:
working-directory: .
python-version: ${{ matrix.python-version }}
module-name: library_analyzer
coverage: ${{ matrix.python-version == '3.10' }}
2 changes: 1 addition & 1 deletion src/library_analyzer/processing/api/_package_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def distribution(package_name: str) -> Optional[str]:


def distribution_version(dist: Optional[str]) -> Optional[str]:
if dist is None:
if dist is None or len(dist) == 0:
return None

return version(dist)