Skip to content

Commit

Permalink
Use uv instead of hatch (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
odarbelaeze authored Sep 11, 2024
1 parent dae9dd5 commit 608eb05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ jobs:
name: CI for ${{ matrix.python-version }}
runs-on: ubuntu-latest
env:
USING_COVERAGE: "3.8,3.11"
USING_COVERAGE: "3.8,3.12"

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:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel hatch==1.6.3
- name: Setup uv
uses: yezz123/setup-uv@v4
with:
uv-version: "0.4.9"
uv-venv: ".venv"

- name: Run tests for ${{ matrix.python-version }}
run: |
hatch env create
hatch run pre-commit run --all
hatch run pytest
uv pip install ".[dev]"
uv run pre-commit run --all
uv run pytest
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ keywords = [
"text mining",
]
dynamic = ["version"]

dependencies = [
"bibtexparser~=1.4.0",
"networkx~=3.0",
"typer[all]~=0.9.0",
"xlsxwriter~=3.2.0",
]
requires-python = ">=3.8"


[project.optional-dependencies]
dev = [
Expand Down

0 comments on commit 608eb05

Please sign in to comment.