Skip to content

Commit 5b1c050

Browse files
committed
simplify github action by doing pip install only once
1 parent 915660e commit 5b1c050

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ jobs:
2121
python-version: ${{ matrix.python-version }}
2222
- name: Update pip and setuptools
2323
run: pip install --upgrade pip setuptools
24+
- name: Setup environment
25+
run: pip install -e .[test]
2426
- name: Run doctests
25-
run: |
26-
pip install -e .[test]
27-
pytest --doctest-modules --ignore=causalpy/tests/ causalpy/
27+
run: pytest --doctest-modules --ignore=causalpy/tests/ causalpy/
2828
- name: Run tests
29-
run: |
30-
pip install -e .[test]
31-
pytest --cov-report=xml --no-cov-on-fail
29+
run: pytest --cov-report=xml --no-cov-on-fail
3230
- name: Upload coverage to Codecov
3331
uses: codecov/codecov-action@v4
3432
with:

0 commit comments

Comments
 (0)