Skip to content

Commit bdddb44

Browse files
rajeswari1301BryceStevenWilley
authored andcommitted
Updated pythontets to support pyproject dependency grps
1 parent b9a12cb commit bdddb44

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

pythontests/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,20 @@ runs:
1818
python-version: '3.12'
1919
cache: 'pip'
2020
cache-dependency-path: |
21-
setup.py
21+
pyproject.toml
2222
**/requirements.txt
2323
- run: python -m venv venv
2424
shell: bash
2525
- run: source venv/bin/activate
2626
shell: bash
2727
- run: pip install wheel pytest
2828
shell: bash
29-
- run: pip install -v -r `find . -name requirements.txt`
29+
- run: |
30+
if [ -n "$(find . -name requirements.txt)" ]; then
31+
pip install -v -r $(find . -name requirements.txt)
32+
else
33+
pip install -v --group dev .
34+
fi
3035
shell: bash
3136
- run: pip install -v --editable .
3237
shell: bash

0 commit comments

Comments
 (0)