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 93922cf commit 42fe641
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/extract_extra_deps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# .github/workflows/extract_extra_deps.py
import toml

pyproject = toml.load("pyproject.toml")
extras = ",".join(pyproject["tool"]["poetry"]["extras"].keys())
print(extras)
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
- name: Install dependencies including optional dependencies
run: |
python -m pip install toml
EXTRAS=$(python -c "import toml; pyproject = toml.load('pyproject.toml'); print(','.join(pyproject['tool']['poetry']['extras'].keys()))")
EXTRAS=$(python .github/workflows/extract_extras.py)
echo "EXTRAS=$EXTRAS"
poetry install --extras "$EXTRAS"
poetry install $(echo $EXTRAS | sed "s/,/ --extras /g")
- name: Install pytest
run: |
Expand Down

0 comments on commit 42fe641

Please sign in to comment.