diff --git a/.github/workflows/post-process.yml b/.github/workflows/post-process.yml index 662fc228..60889a38 100644 --- a/.github/workflows/post-process.yml +++ b/.github/workflows/post-process.yml @@ -33,26 +33,32 @@ jobs: strategy: max-parallel: 6 matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + version: + - { python: "3.9", resolution: highest, extras: testing } + - { python: "3.10", resolution: lowest-direct, extras: testing } + - { python: "3.11", resolution: highest, extras: testing } + - { python: "3.12", resolution: lowest-direct, extras: testing } os: - ubuntu-latest - macos-latest - windows-latest - macos-14 exclude: - - os: macos-14 - python-version: "3.9" + - {version: { + python: "3.9" }, + os: macos-14 } runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }}${{ matrix.dev }} + python-version: ${{ matrix.version.python }} - name: Install test requirements run: | python -m pip install --upgrade pip - pip install -e ".[testing]" + pip install uv + uv pip install '.[${{ matrix.version.extras }}]' --system --resolution=${{ matrix.version.resolution }} - name: Run tests run: | pytest -n auto --cov=src/pyEQL --cov-report=xml diff --git a/pyproject.toml b/pyproject.toml index b15030c5..a660728d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ dependencies = [ "numpy<2", "scipy>1.10", "pymatgen==2024.5.1", - "iapws", + "iapws>=1.0.1", "monty>=2024.7.12", "maggma>=0.67.0", "phreeqpython", diff --git a/src/pyEQL/solution.py b/src/pyEQL/solution.py index a5c1f68b..de9e0b7f 100644 --- a/src/pyEQL/solution.py +++ b/src/pyEQL/solution.py @@ -2295,7 +2295,7 @@ def _adjust_charge_balance(self, atol=1e-8) -> None: return self.logger.info( - f"Solution is not electroneutral (C.B. = {cb} eq/L). Adjusting {self._cb_species} to compensate." + f"Adjusting {self._cb_species} to compensate." ) if self.balance_charge == "pH":