Skip to content

Commit

Permalink
Devops: Merge tests and pre-commit extras into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sphuber committed Dec 22, 2023
1 parent 3f86c30 commit 9ff55c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
cache-dependency-path: pyproject.toml

- name: Install Python package and dependencies
run: pip install -e .[pre-commit,tests]
run: pip install -e .[dev]

- name: Run pre-commit
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
cache-dependency-path: pyproject.toml

- name: Install Python package and dependencies
run: pip install -e .[tests]
run: pip install -e .[dev]

- name: Run pytest
run: pytest -sv tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
cache-dependency-path: pyproject.toml

- name: Install Python package and dependencies
run: pip install -e .[pre-commit,tests]
run: pip install -e .[dev]

- name: Run pre-commit
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
cache-dependency-path: pyproject.toml

- name: Install Python package and dependencies
run: pip install -e .[tests]
run: pip install -e .[dev]

- name: Run pytest
env:
Expand Down
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,18 @@ requires-python = '>=3.8'
'pseudo.family.sssp' = 'aiida_pseudo.groups.family.sssp:SsspFamily'

[project.optional-dependencies]
dev = [
'pgtest~=1.3',
'pre-commit~=2.2',
'pytest>=6.0'
]
docs = [
'sphinx~=6.0',
'sphinx-copybutton~=0.5.0',
'sphinx-book-theme~=1.0',
'sphinx-autoapi~=3.0',
'sphinx-click~=4.0'
]
pre-commit = [
'pre-commit~=2.2'
]
tests = [
'pgtest~=1.3',
'pytest>=6.0'
]

[project.scripts]
aiida-pseudo = 'aiida_pseudo.cli:cmd_root'
Expand Down

0 comments on commit 9ff55c1

Please sign in to comment.