Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yxjiang committed May 25, 2024
1 parent 8cfe277 commit 8eb0079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/extract_extra_deps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# .github/workflows/extract_extras.py
# .github/workflows/extract_extra_deps.py
import toml

pyproject = toml.load("pyproject.toml")
extras = ",".join(pyproject["tool"]["poetry"]["extras"].keys())
extras = " ".join([f"-E {key}" for key in pyproject["tool"]["poetry"]["extras"].keys()])
print(extras)
4 changes: 1 addition & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ jobs:
python -m pip install toml
EXTRAS=$(python .github/workflows/extract_extra_deps.py)
echo "EXTRAS=$EXTRAS"
EXTRAS_FLAGS=$(echo $EXTRAS | sed 's/\([^,]\+\)/--extras \1/g')
echo "EXTRAS_FLAGS=$EXTRAS_FLAGS"
poetry install $EXTRAS_FLAGS
poetry install $EXTRAS
- name: Install pytest
run: |
Expand Down

0 comments on commit 8eb0079

Please sign in to comment.