Skip to content

Commit 5def15d

Browse files
committed
(tests) Improved the test dependency caching
1 parent 34b6647 commit 5def15d

File tree

6 files changed

+16
-20
lines changed

6 files changed

+16
-20
lines changed

.github/workflows/coreTests_LinuxUbuntu.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ jobs:
2626

2727
- name: Install dependencies
2828
run: |
29-
python -m pip install --upgrade pip
30-
python -m pip install --upgrade setuptools
31-
python -m pip install wheel flask pytest
32-
python -m pip install -e .
29+
python -m pip install --upgrade pip setuptools wheel
30+
python -m pip install -e ".[test]"
3331
- name: Test with pytest
3432
run: |
3533
pytest --durations=0

.github/workflows/coreTests_MacM1.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ jobs:
2626

2727
- name: Install dependencies
2828
run: |
29-
python -m pip install --upgrade pip
30-
python -m pip install --upgrade setuptools
31-
python -m pip install wheel flask pytest
32-
python -m pip install -e .
29+
python -m pip install --upgrade pip setuptools wheel
30+
python -m pip install -e ".[test]"
3331
- name: Test with pytest
3432
run: |
3533
pytest --durations=0

.github/workflows/coreTests_Windows.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ jobs:
2626

2727
- name: Install dependencies
2828
run: |
29-
python -m pip install --upgrade pip
30-
python -m pip install --upgrade setuptools
31-
python -m pip install wheel flask pytest
32-
python -m pip install -e .
29+
python -m pip install --upgrade pip setuptools wheel
30+
python -m pip install -e ".[test]"
3331
- name: Test with pytest
3432
run: |
3533
pytest --durations=0

.github/workflows/fullTest.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install Dependencies
2626
run: |
2727
python -m pip install --upgrade pip setuptools wheel
28-
python -m pip install -e ".[dev]"
28+
python -m pip install -e ".[dev,test]"
2929
3030
- name: Download Models
3131
id: DownloadModelsAttempt1
@@ -57,7 +57,7 @@ jobs:
5757
- name: Install Dependencies
5858
run: |
5959
python -m pip install --upgrade pip setuptools wheel
60-
python -m pip install -e ".[dev]"
60+
python -m pip install -e ".[dev,test]"
6161
6262
- name: Download Models
6363
id: DownloadModelsAttempt1
@@ -89,7 +89,7 @@ jobs:
8989
- name: Install Dependencies
9090
run: |
9191
python -m pip install --upgrade pip setuptools wheel
92-
python -m pip install -e ".[dev]"
92+
python -m pip install -e ".[dev,test]"
9393
9494
- name: Download Models
9595
id: DownloadModelsAttempt1

.github/workflows/weeklyTesting.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip setuptools wheel
29-
python -m pip install -e .
29+
python -m pip install -e ".[test]"
3030
- name: Test with pytest
3131
run: |
3232
pytest --durations=0
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install Dependencies
4848
run: |
4949
python -m pip install --upgrade pip setuptools wheel
50-
python -m pip install -e ".[dev]"
50+
python -m pip install -e ".[dev,test]"
5151
5252
- name: Download Models
5353
id: DownloadModelsAttempt1

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ dev = [
5353
"onnxsim==0.4.33",
5454
"onnxscript",
5555
"onnxruntime>=1.20.0",
56-
"optimade[http_client]>=1.0.0",
57-
"pytest",
58-
"flask"
56+
"optimade[http_client]>=1.0.0"
57+
]
58+
test = [
59+
"pytest>=7.0.0",
60+
"flask>=2.0.0"
5961
]
6062

6163
[project.urls]

0 commit comments

Comments
 (0)