diff --git a/.github/workflows/extract_extra_deps.py b/.github/workflows/extract_extra_deps.py index 8925c7d..dc474bf 100644 --- a/.github/workflows/extract_extra_deps.py +++ b/.github/workflows/extract_extra_deps.py @@ -1,4 +1,4 @@ -# .github/workflows/extract_extra_deps.py +# .github/workflows/extract_extras.py import toml pyproject = toml.load("pyproject.toml") diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8198842..55fbe51 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -33,9 +33,9 @@ jobs: - name: Install dependencies including optional dependencies run: | python -m pip install toml - EXTRAS=$(python .github/workflows/extract_extra_deps.py) + EXTRAS=$(python .github/workflows/extract_extras.py) echo "EXTRAS=$EXTRAS" - poetry install $(echo $EXTRAS | sed "s/,/ --extras /g") + poetry install $(echo $EXTRAS | sed 's/\([^,]\+\)/--extras \1/g' | tr '\n' ' ') - name: Install pytest run: |