Skip to content

Commit

Permalink
- making a namespace package
Browse files Browse the repository at this point in the history
- fix warning in pytest
- workflows fixes
  • Loading branch information
cav71 committed Sep 13, 2024
1 parent a4e737a commit 59b326b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-python-luxos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ jobs:
- name: Run Python checks
shell: bash
env:
PYTHONPATH: src
OUTDIR: build/qa-${{ matrix.python-version }}-${{ matrix.os}}
run: |
pip install .
py.test \
--cov=${{ env.PACKAGE }} \
--cov-report=html:$OUTDIR/coverage --cov-report=xml:$OUTDIR/coverage.xml \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ jobs:
- name: Run Python checks
shell: bash
env:
PYTHONPATH: src
OUTDIR: build/qa-${{ matrix.python-version }}-${{ matrix.os}}
run: |
pip install .
py.test \
--cov=${{ env.PACKAGE }} \
--cov-report=html:$OUTDIR/coverage --cov-report=xml:$OUTDIR/coverage.xml \
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ health-checker = "luxos.scripts.health_checker:main"

[tool.setuptools.packages.find]
where = ["src"]
namespaces = true

[tool.setuptools.package-data]
'luxos' = ['*.json', 'py.typed']
Expand Down Expand Up @@ -107,3 +108,4 @@ exclude_lines = [
markers = [
"manual: marks tests unsafe for auto-run (eg. better run them manually)",
]
asyncio_default_fixture_loop_scope = "function"

0 comments on commit 59b326b

Please sign in to comment.