Skip to content

Commit

Permalink
Improved pyproject and requirements for test and bench
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Jul 13, 2023
1 parent 5b5516c commit f9bfbcf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
- name: Install dependencies
run: |
sudo apt install -y graphviz
pip install pytest pytest-cov pytest-subtests packaging
pip install .
pip install packaging
pip install .[testbase]
- name: Install pytest-mpl
if: contains(matrix.extras, 'matplotlib')
Expand Down Expand Up @@ -139,8 +139,8 @@ jobs:
- name: Install dependencies
run: |
# sudo apt install -y graphviz
pip install pytest pytest-cov pytest-subtests packaging
pip install .
pip install packaging
pip install .[testbase]
# - name: Install pytest-mpl
# if: contains(matrix.extras, 'matplotlib')
Expand Down Expand Up @@ -191,8 +191,8 @@ jobs:

- name: Install dependencies
run: |
pip install pytest pytest-cov pytest-subtests packaging
pip install .
pip install packaging
pip install .[testbase]
- name: Run Tests
run: |
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ pint = [


[project.optional-dependencies]
testbase = [
"pytest",
"pytest-cov",
"pytest-subtests",
"pytest-benchmark"
]
test = [
"pytest",
"pytest-mpl",
Expand All @@ -49,7 +55,7 @@ test = [
]
bench = [
"pytest",
"pytest-benchmark"
"pytest-codspeed"
]
numpy = ["numpy >= 1.19.5"]
uncertainties = ["uncertainties >= 3.1.6"]
Expand Down

0 comments on commit f9bfbcf

Please sign in to comment.