Skip to content

Commit c69b58b

Browse files
use pytest-xdist + install from pyproject instead of requirements
1 parent 20c4e26 commit c69b58b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/testing.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install --quiet -r requirements.txt -r requirements-dev.txt
30-
pip install -e .
29+
pip install -e '.[all]'
3130
- name: pytest
3231
run: |
33-
pytest #--cov=pymatgen tests
32+
pytest -n auto tests
3433
- name: Upload coverage reports to Codecov
3534
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.task == 'release')
3635
uses: codecov/codecov-action@v3

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ keywords = ["io", "validation", "dft", "vasp"]
3737
license = { text = "modified BSD" }
3838
name = "pymatgen-io-validation"
3939
readme = "README.md"
40-
requires-python = '>=3.8'
40+
requires-python = '>=3.11'
4141

4242
[project.optional-dependencies]
4343
dev = ["pre-commit>=2.12.1"]
4444
#docs = ["jupyter-book>=0.13.1",]
4545

46-
tests = ["pytest==8.4.2", "pytest-cov==7.0.0", "types-requests"]
47-
46+
tests = ["pytest>=8.4.2", "pytest-cov>=7.0.0", "pytest-xdist>=3.8.0", "types-requests"]
47+
all = ["pymatgen-io-validation[dev,tests]"]
4848

4949
[tool.setuptools.dynamic]
5050
readme = { file = ["README.md"] }

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pytest==8.4.2
22
pytest-cov==7.0.0
3+
pytest-xdist==3.8.0
34
coverage==7.10.6
45
mypy==1.18.1
56
pydocstyle==6.1.1

0 commit comments

Comments
 (0)