From 204a0ced786355fc1ee383b19c472cf3b9dc70ad Mon Sep 17 00:00:00 2001 From: Yx Jiang <2237303+yxjiang@users.noreply.github.com> Date: Sat, 25 May 2024 14:12:52 -0700 Subject: [PATCH] update --- .github/workflows/extract_extra_deps.py | 2 +- .github/workflows/test.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: |