diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 718572b..be4ca53 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,11 @@ updates: directory: "/" schedule: interval: "weekly" + groups: + github-actions: + patterns: + - "*" + - package-ecosystem: "uv" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a9c99c3..41ed904 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,9 @@ jobs: - uses: astral-sh/setup-uv@v7 with: enable-cache: true - - run: uv run --extra typing --extra test ty check src/ tests/ + - name: Install just + uses: extractions/setup-just@v3 + - run: just typing run-tests: @@ -47,10 +49,12 @@ jobs: with: enable-cache: true python-version: ${{ matrix.python-version }} + - name: Install just + uses: extractions/setup-just@v3 - name: Run tests shell: bash -l {0} - run: uv run --extra test pytest --cov=./ --cov-report=xml -n auto + run: just test-cov - name: Upload coverage report if: runner.os == 'Linux' && matrix.python-version == '3.10' diff --git a/README.md b/README.md index 9e2ece3..5a2ba54 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,11 @@ pytask-latex is available on [PyPI](https://pypi.org/project/pytask-latex) and [Anaconda.org](https://anaconda.org/conda-forge/pytask-latex). Install it with ```console -$ pip install pytask-latex +$ uv add pytask-latex # or -$ conda install -c conda-forge pytask-latex +$ pixi add pytask-latex ``` You also need to have `latexmk` installed which determines the necessary number of diff --git a/justfile b/justfile index a95f3b4..8dc776a 100644 --- a/justfile +++ b/justfile @@ -12,7 +12,7 @@ test-cov *FLAGS: # Run type checking typing: - uv run --group typing --group test ty check src/ tests/ + uv run --group typing --group test --isolated ty check src/ tests/ # Run linting lint: diff --git a/pyproject.toml b/pyproject.toml index 7a83c76..12d5821 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,11 +30,11 @@ Documentation = "https://github.com/pytask-dev/pytask-latex" Github = "https://github.com/pytask-dev/pytask-latex" Tracker = "https://github.com/pytask-dev/pytask-latex/issues" -[project.optional-dependencies] +[dependency-groups] test = ["pytest", "pytest-cov", "pytest-xdist"] typing = [ "pytask-parallel", - "ty>=0.0.7", + "ty>=0.0.8", ] [project.entry-points.pytask]