Skip to content

Commit

Permalink
DEV: updates to tooling settings
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinHuttley committed Jan 27, 2025
1 parent d5359d4 commit 1bc5e43
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ jobs:
with:
python-version: "${{ matrix.python-version }}"

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"

- name: "Installs for ${{ matrix.python-version }}"
run: |
pip install --upgrade pip
pip install nox uv
uv venv venv -p python${{ matrix.python-version }}
uv tool install -p venv nox
- name: "Run nox for Python ${{ matrix.python-version }}"
run: "nox -db uv -s test-${{ matrix.python-version }}"
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@nox.session(python=[f"3.{v}" for v in _py_versions])
def test(session):
session.install(".[test]")
session.install("-e.[test]")
session.chdir("tests")
session.run(
"pytest",
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ dvs_par_ctree = "diverse_seq.cluster:dvs_par_ctree"
addopts = ["--strict-config", "-ra"]
testpaths = "tests"

[tool.uv]
reinstall-package = ["diverse_seq"]

[tool.ruff]
exclude = [
".bzr",
Expand Down

0 comments on commit 1bc5e43

Please sign in to comment.