Skip to content

Commit

Permalink
ci: use hatch in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Jun 25, 2024
1 parent 520be9b commit 2c302bb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
architecture: x64
- run: pip install nox==2022.11.21
- run: pip install poetry==1.2.2
- run: nox --session mypy-${{matrix.python-version}}
allow-prereleases: true
- run: pip install hatch
- run: hatch run +py=${{matrix.python-version}} mypy:test

test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
architecture: x64
- run: pip install nox==2022.11.21
- run: pip install poetry==1.2.2
- run: nox --sessions test-${{matrix.python-version}}
allow-prereleases: true
- run: pip install hatch
- run: hatch test -py ${{matrix.python-version}}
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ extra-dependencies = [
[[tool.hatch.envs.hatch-test.matrix]]
python=['3.8',"3.9","3.10","3.11","3.12","3.13"]


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

[tool.hatch.envs.mypy]
extra-dependencies=["mypy"]
scripts.test = ["mypy src"]

[tool.hatch.envs.docs]
dependencies = [
"mkdocs>=1.4.2",
Expand Down

0 comments on commit 2c302bb

Please sign in to comment.