Skip to content

Commit

Permalink
ci: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Feb 7, 2024
1 parent 4765406 commit 60d3024
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
with:
python-version: ${{matrix.python-version}}
architecture: x64
- run: pip install nox==2023.4.22
- run: pip install poetry nox-poetry
- run: nox --session mypy-${{matrix.python-version}}
- run: |
pip install hatch
hatch run -python=${{matrix.python-version}} mypy:test
test:
runs-on: ${{matrix.os}}
Expand All @@ -33,16 +33,15 @@ jobs:
with:
python-version: ${{matrix.python-version}}
architecture: x64
- run: pip install hatch
- run: pip install poetry nox-poetry
- run: hatch +python=${{matrix.python-version}} test-cov
- run: |
pip install hatch
hatch run +python=${{matrix.python-version}} all:test-cov
- name: Combine data
env:
TOP: ${{github.workspace}}
run: |
poetry install
poetry run coverage combine
pip install hatch
mv .coverage .coverage.${{ matrix.python-version }}.${{matrix.os}}
- name: Upload coverage data
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,15 @@ scripts.serve = ["mkdocs serve {args}"]

[tool.hatch.version]
path = "src/lazy_imports_lite/__init__.py"




[tool.hatch.envs.mypy]
dependencies = [
"mypy",
]
scripts.test = "mypy src tests"

[[tool.hatch.envs.mypy.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

0 comments on commit 60d3024

Please sign in to comment.